Skip to content

Commit

Permalink
fix: space separated commands and args
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Jan 23, 2023
1 parent 10b7dc0 commit 4ed3ff7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@oclif/core",
"description": "base library for oclif CLIs",
"version": "1.26.0",
"version": "1.26.1",
"author": "Salesforce",
"bugs": "https://github.com/oclif/core/issues",
"dependencies": {
Expand Down Expand Up @@ -114,4 +114,4 @@
"pretest": "yarn build --noEmit && tsc -p test --noEmit --skipLibCheck"
},
"types": "lib/index.d.ts"
}
}
2 changes: 1 addition & 1 deletion src/help/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function collateSpacedCmdIDFromArgs(argv: string[], config: IConfig): string[] {
const id = finalizeId()
if (!id) return false
const cmd = config.findCommand(id)
return Boolean(cmd && (cmd.strict === false || cmd.args?.length > 0))
return Boolean(cmd && (cmd.strict === false || Object.values(cmd.args ?? {}).length > 0))
}

for (const arg of argv) {
Expand Down

0 comments on commit 4ed3ff7

Please sign in to comment.