Skip to content

Commit 4ed3ff7

Browse files
committed
fix: space separated commands and args
1 parent 10b7dc0 commit 4ed3ff7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@oclif/core",
33
"description": "base library for oclif CLIs",
4-
"version": "1.26.0",
4+
"version": "1.26.1",
55
"author": "Salesforce",
66
"bugs": "https://github.com/oclif/core/issues",
77
"dependencies": {
@@ -114,4 +114,4 @@
114114
"pretest": "yarn build --noEmit && tsc -p test --noEmit --skipLibCheck"
115115
},
116116
"types": "lib/index.d.ts"
117-
}
117+
}

src/help/util.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function collateSpacedCmdIDFromArgs(argv: string[], config: IConfig): string[] {
5353
const id = finalizeId()
5454
if (!id) return false
5555
const cmd = config.findCommand(id)
56-
return Boolean(cmd && (cmd.strict === false || cmd.args?.length > 0))
56+
return Boolean(cmd && (cmd.strict === false || Object.values(cmd.args ?? {}).length > 0))
5757
}
5858

5959
for (const arg of argv) {

0 commit comments

Comments
 (0)