experimenting with --help-all

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2023-01-23 14:25:40 +03:00
parent d6866ae4b2
commit 2b7204befb

10
argv.js
View File

@ -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,