mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-28 18:30:07 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c9f99d9ce0
commit
eb1744fd6c
6
argv.js
6
argv.js
@ -799,6 +799,9 @@ object.Constructor('Parser', {
|
||||
&& key.replace(this.optionInputPattern, '$2') == 'help'
|
||||
&& this['-help'] == '-h'){
|
||||
for(var n in this){
|
||||
// skip non-options...
|
||||
if(/^[\w_]/.test(n)){
|
||||
continue }
|
||||
// only print if extended help available...
|
||||
if(this[n] instanceof Parser){
|
||||
return this.extendedHelp.handler.call(this, ...arguments) } } }
|
||||
@ -969,6 +972,9 @@ object.Constructor('Parser', {
|
||||
|
||||
// print help for nested parsers...
|
||||
for(var n in this){
|
||||
// skip non-options...
|
||||
if(/^[\w_]/.test(n)){
|
||||
continue }
|
||||
// doc...
|
||||
if(this[n] instanceof Parser
|
||||
&& this[n].doc !== false){
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ig-argv",
|
||||
"version": "2.16.9",
|
||||
"version": "2.16.10",
|
||||
"description": "simple argv parser",
|
||||
"main": "argv.js",
|
||||
"scripts": {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user