Comparing version 1.0.22 to 1.0.23
@@ -64,5 +64,7 @@ "use strict"; | ||
const argName = this.getName(arg); | ||
if (!(argName in this.argsMap)) { | ||
this.onProcessQueue.push(arg); | ||
} | ||
this.args.push(arg); | ||
this.argsMap[argName] = arg; | ||
this.onProcessQueue.push(arg); | ||
} | ||
@@ -80,5 +82,7 @@ return this; | ||
} | ||
if (!(name in this.opts)) { | ||
this.onProcessQueue.push(option); | ||
} | ||
this.opts[name] = option; | ||
this.shortNameMap[short] = name; | ||
this.onProcessQueue.push(option); | ||
for (const [, subCommand] of Object.entries(this.subCommands)) { | ||
@@ -85,0 +89,0 @@ if (subCommand.inheritOpts) { |
{ | ||
"name": "cilly", | ||
"version": "1.0.22", | ||
"version": "1.0.23", | ||
"description": "The last library you'll ever need for building intuitive, robust and flexible CLI tools with Node.js and TypeScript.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
77601
1192