mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-29 18:50:09 +00:00
minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
b3a55d4821
commit
927aff890c
6
test.js
6
test.js
@ -37,8 +37,7 @@ argv.Parser({
|
|||||||
|
|
||||||
'-verbose': function(){
|
'-verbose': function(){
|
||||||
console.log('>>> VERBOSE:', ...arguments)
|
console.log('>>> VERBOSE:', ...arguments)
|
||||||
return 'verbose'
|
return 'verbose' },
|
||||||
},
|
|
||||||
|
|
||||||
'-c': '@command',
|
'-c': '@command',
|
||||||
'@cmd': '@command',
|
'@cmd': '@command',
|
||||||
@ -46,8 +45,7 @@ argv.Parser({
|
|||||||
priority: -50,
|
priority: -50,
|
||||||
handler: function(){
|
handler: function(){
|
||||||
console.log('>>> COMMAND:', ...arguments)
|
console.log('>>> COMMAND:', ...arguments)
|
||||||
return 'command'
|
return 'command' },
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
'-r': '-required',
|
'-r': '-required',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user