Skip to content

soft-deprecate --reporter-options and replace with --reporter-option #3564

@boneskull

Description

@boneskull

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:

  1. Soft-deprecate (using utils.deprecate()) --reporter-options
  2. Implement --reporter-option which 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

No one assigned

    Labels

    area: node.jscommand-line-or-Node.js-specific

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions