notes + minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-07-02 03:18:27 +03:00
parent bad2ea8c6d
commit 622eadee96
2 changed files with 10 additions and 5 deletions

View File

@ -375,6 +375,13 @@ object.Constructor('Parser', {
console.log(this.version || '0.0.0')
return module.STOP }, },
// Stop processing arguments and continue into .then(..) handlers...
//
// If .then(..) does not handle rest in the nested context then this
// context will be returned to the parent context, effectively
// stopping the nested context and letting the parent continue.
//
// XXX should we be able to force the parent/root to also stop???
// XXX do we actually need this???
'-': {
doc: 'stop processing arguments after this point',

View File

@ -41,7 +41,6 @@ argv.Parser({
},
'-test': argv.Parser({
// XXX ENV
env: 'TEST',
default: 'moo',
}).then(function(){
@ -97,11 +96,10 @@ p(['test', 'nested', '-h'])
p(['test', '-h'])
//*/
if(typeof(__filename) != 'undefined'
&& __filename == (require.main || {}).filename){
typeof(__filename) != 'undefined'
&& __filename == (require.main || {}).filename
&& p()
p(process.argv)
}
/**********************************************************************