Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-06-28 02:13:43 +03:00
parent 1112e8af94
commit 78d1e2a7be

19
test.js
View File

@ -25,7 +25,6 @@ argv.Parser({
'@help': '-help',
//'-v': '-verbose',
'-verbose': function(){
console.log('>>> VERBOSE:', ...arguments)
return 'verbose'
@ -41,9 +40,6 @@ argv.Parser({
},
},
// XXX dead-end alias...
'-d': '-dead-end',
'@test': argv.Parser({
}),
@ -54,6 +50,21 @@ argv.Parser({
doc: 'nested nested parser.',
}),
}),
// these aliases will not get shown...
// dead-end alias...
'-d': '-dead-end',
// alias loops...
'-z': '-z',
'-x': '-y',
'-y': '-x',
'-a': '-b',
'-b': '-c',
'-c': '-a',
})
.then(function(){
console.log('DONE') })