minor tweak...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-12-10 05:32:36 +03:00
parent 75e57c6553
commit d2c16d862d
2 changed files with 3 additions and 3 deletions

View File

@ -1082,9 +1082,9 @@ object.Constructor('Parser', {
|| (require.main || {}).filename
|| parsed.argv[1]
// nested command handler...
var nested = parsed.nested = false
var nested = parsed.parent = false
if(context instanceof Parser){
nested = parsed.nested = true
nested = parsed.parent = context
main = context.scriptName +' '+ main
rest.unshift(main) }
// normalize the argv...

View File

@ -1,6 +1,6 @@
{
"name": "ig-argv",
"version": "2.15.3",
"version": "2.15.4",
"description": "simple argv parser",
"main": "argv.js",
"scripts": {