From 2b7204befbf05186d5cd39d7b31872f08f4c1725 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 23 Jan 2023 14:25:40 +0300 Subject: [PATCH] experimenting with --help-all Signed-off-by: Alex A. Naanou --- argv.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/argv.js b/argv.js index a1e776d..1bb1b81 100644 --- a/argv.js +++ b/argv.js @@ -910,6 +910,16 @@ object.Constructor('Parser', { .flat() .join('\n'))) return module.STOP }}, + // XXX might also be a good idea to do this as --help and the do the + // short version as -h... + '-help-all': { + // XXX REMOVE WHEN DONE... + doc: false, + handler: function(){ + var res = this.handle('-help', ...arguments) + // XXX print help for nested parsers... + // XXX + return res } }, // alias for convenience (not documented)... '-?': { doc: false,