-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Labels
area: node.jscommand-line-or-Node.js-specificcommand-line-or-Node.js-specific
Description
This assumes #3556 lands. This issue came out of code review there.
Yargs has great support for "array"-type options. Generally, any option can be specified multiple times. In addition, options can accept multiple, space-delimited values, e.g., --foo bar baz quux.
This issue has two parts:
- Soft-deprecate (using
utils.deprecate())--reporter-options - Implement
--reporter-optionwhich can be repeated multiple times.
It'd be cool to be able to specify a minimum of one value and a maximum of two, e.g.:
--reporter-option someBooleanFlag --reporter-option someString stringValue
Not sure if Yargs can to that, but if it can't, then require a single value and split the result on =:
--reporter-option someBooleanFlag --reporter-option someString=stringValue
Metadata
Metadata
Assignees
Labels
area: node.jscommand-line-or-Node.js-specificcommand-line-or-Node.js-specific