Skip to content

Commit

Permalink
feat(command): add complete method for custom auto completions
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Mar 31, 2020
1 parent 9406a84 commit 7d5d25e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/command/lib/base-command.ts
Expand Up @@ -680,8 +680,9 @@ export class BaseCommand {
let details: IArgumentDetails = {
optionalValue: arg[ 0 ] !== '<',
name: parts[ 1 ],
action: parts[ 3 ] || type,
variadic: false,
list: type ? arg.indexOf( type + '[]' ) !== -1 : undefined,
list: type ? arg.indexOf( type + '[]' ) !== -1 : false,
type
};

Expand Down

0 comments on commit 7d5d25e

Please sign in to comment.