Skip to content

Commit

Permalink
fix: update collateSpacedCmdIDFromArgs (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Aug 16, 2021
1 parent badf41b commit 4687287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/help/util.ts
Expand Up @@ -48,7 +48,7 @@ function collateSpacedCmdIDFromArgs(argv: string[], config: IConfig): string[] {

const hasSubCommandsWithArgs = () => {
const subCommands = config.commands.filter(c => (c.id).startsWith(finalizeId()))
return Boolean(subCommands.find(cmd => !cmd.strict || cmd.args.length > 0))
return Boolean(subCommands.find(cmd => cmd.strict === false || cmd.args.length > 0))
}

for (const arg of argv) {
Expand Down

0 comments on commit 4687287

Please sign in to comment.