mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-28 18:30:07 +00:00
experimenting with --help-all
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
d6866ae4b2
commit
2b7204befb
10
argv.js
10
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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user