mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-29 02:40:07 +00:00
minor tweks...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
e685e3d74a
commit
8dc72a74da
12
argv.js
12
argv.js
@ -39,11 +39,20 @@ module.ERROR =
|
|||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// helpers...
|
// Helpers...
|
||||||
|
|
||||||
|
// These can be useful in the argv parsing context...
|
||||||
|
//
|
||||||
|
module.normalizeIndent = object.normalizeIndent
|
||||||
|
module.normalizeTextIndent = object.normalizeTextIndent
|
||||||
|
|
||||||
|
|
||||||
|
// container for secondary/extra stuff...
|
||||||
|
//
|
||||||
module.extra = {}
|
module.extra = {}
|
||||||
|
|
||||||
|
|
||||||
|
// function with callback generator...
|
||||||
//
|
//
|
||||||
// afterCallback(name)
|
// afterCallback(name)
|
||||||
// -> func
|
// -> func
|
||||||
@ -63,6 +72,7 @@ module.extra = {}
|
|||||||
// post_action(...args)
|
// post_action(...args)
|
||||||
// -> ...
|
// -> ...
|
||||||
//
|
//
|
||||||
|
//
|
||||||
var afterCallback =
|
var afterCallback =
|
||||||
module.extra.afterCallback =
|
module.extra.afterCallback =
|
||||||
function(name, pre, post){
|
function(name, pre, post){
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-argv",
|
"name": "ig-argv",
|
||||||
"version": "2.2.6",
|
"version": "2.2.7",
|
||||||
"description": "simple argv parser",
|
"description": "simple argv parser",
|
||||||
"main": "argv.js",
|
"main": "argv.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user