mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-28 18:30: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 = {}
|
||||
|
||||
|
||||
// function with callback generator...
|
||||
//
|
||||
// afterCallback(name)
|
||||
// -> func
|
||||
@ -63,6 +72,7 @@ module.extra = {}
|
||||
// post_action(...args)
|
||||
// -> ...
|
||||
//
|
||||
//
|
||||
var afterCallback =
|
||||
module.extra.afterCallback =
|
||||
function(name, pre, post){
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-argv",
|
||||
"version": "2.2.6",
|
||||
"version": "2.2.7",
|
||||
"description": "simple argv parser",
|
||||
"main": "argv.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user