From dbd7653e234db37f8f01e114977ee31841919eb0 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 29 Jul 2020 20:29:33 +0300 Subject: [PATCH] more docs... Signed-off-by: Alex A. Naanou --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d1d9bed..490e5ff 100644 --- a/README.md +++ b/README.md @@ -251,7 +251,19 @@ var parser = argv.Parser({ // // These define .handler's... - // XXX .handler + '-active': { + doc: 'basic active option', + handler: function(args, key, value){ + // ... + } }, + + // a shorthand active option... + // NOTE: this is recomended only for quick and dirty mashups and not + // for production code... + '-s': '-shorthand-active', + '-shorthand-active': function(args, key, value){ + // ... + }, // Nested parsers...