Skip to content

Commit

Permalink
fix: the -r option is not supported by all cmds
Browse files Browse the repository at this point in the history
ref #2396
  • Loading branch information
zkochan committed Mar 14, 2020
1 parent 6f3f52e commit dbbcbf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/parse-cli-args/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ export default async function parseCliArgs (
const commandName = getCommandName(noptExploratoryResults.argv.remain)
let cmd = commandName ? opts.getCommandLongName(commandName) : null
const types = {
'recursive': Boolean,
...opts.universalOptionsTypes,
...opts.getTypesByCommandName(commandName),
} as any // tslint:disable-line:no-any
Expand All @@ -74,7 +73,10 @@ export default async function parseCliArgs (
}

const { argv, ...options } = nopt(
types,
{
'recursive': Boolean,
...types,
},
{
...opts.universalShorthands,
...opts.shorthandsByCommandName[commandName],
Expand Down

0 comments on commit dbbcbf4

Please sign in to comment.