mirror of
https://github.com/flynx/argv.js.git
synced 2025-10-28 10:20:09 +00:00
minor tweak...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
75e57c6553
commit
d2c16d862d
4
argv.js
4
argv.js
@ -1082,9 +1082,9 @@ object.Constructor('Parser', {
|
|||||||
|| (require.main || {}).filename
|
|| (require.main || {}).filename
|
||||||
|| parsed.argv[1]
|
|| parsed.argv[1]
|
||||||
// nested command handler...
|
// nested command handler...
|
||||||
var nested = parsed.nested = false
|
var nested = parsed.parent = false
|
||||||
if(context instanceof Parser){
|
if(context instanceof Parser){
|
||||||
nested = parsed.nested = true
|
nested = parsed.parent = context
|
||||||
main = context.scriptName +' '+ main
|
main = context.scriptName +' '+ main
|
||||||
rest.unshift(main) }
|
rest.unshift(main) }
|
||||||
// normalize the argv...
|
// normalize the argv...
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ig-argv",
|
"name": "ig-argv",
|
||||||
"version": "2.15.3",
|
"version": "2.15.4",
|
||||||
"description": "simple argv parser",
|
"description": "simple argv parser",
|
||||||
"main": "argv.js",
|
"main": "argv.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user