@oclif/core
Advanced tools
Comparing version 3.21.0 to 3.21.1
@@ -228,3 +228,3 @@ "use strict"; | ||
for (const token of tokens) { | ||
if (args[token.arg]) | ||
if (args[token.arg] !== undefined) | ||
continue; | ||
@@ -231,0 +231,0 @@ argv.push(token.input); |
@@ -37,3 +37,4 @@ "use strict"; | ||
} | ||
if (arg.required && !parse.output.args[name] && parse.output.args[name] !== 0) { | ||
// Only add if it's required and undefined. Allow falsy values like empty strings and 0. | ||
if (arg.required && parse.output.args[name] === undefined) { | ||
missingRequiredArgs.push(arg); | ||
@@ -40,0 +41,0 @@ } |
{ | ||
"name": "@oclif/core", | ||
"description": "base library for oclif CLIs", | ||
"version": "3.21.0", | ||
"version": "3.21.1", | ||
"author": "Salesforce", | ||
@@ -67,3 +67,3 @@ "bugs": "https://github.com/oclif/core/issues", | ||
"eslint": "^8.57.0", | ||
"eslint-config-oclif": "^5.0.2", | ||
"eslint-config-oclif": "^5.0.4", | ||
"eslint-config-oclif-typescript": "^3.0.48", | ||
@@ -70,0 +70,0 @@ "eslint-config-prettier": "^9.1.0", |
429416
11232