From 78d1e2a7be07d054bf0030241be763142010d3c1 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 28 Jun 2020 02:13:43 +0300 Subject: [PATCH] tests... Signed-off-by: Alex A. Naanou --- test.js | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/test.js b/test.js index 837efe1..527b71c 100644 --- a/test.js +++ b/test.js @@ -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') })