Skip to content

define option is being included multiple times in the JSON help #30710

Open
@alan-agius4

Description

@alan-agius4

Description

The define option is being included multiple times in the JSON help output example: https://github.com/angular/cli-builds/blob/4e015ce6eef338f64ce413547ce046a35ab50a01/help/test.json#L42-L51 which causes the option to be displayed multiple times in angular.dev, see: https://angular.dev/cli/test

Reproduction

ng build --help --json-help | grep '"name": "define"'
      "name": "define",
      "name": "define",

ng test --help --json-help | grep '"name": "define"'
      "name": "define",
      "name": "define",

Anything else relevant?

Possibly this could be caused by the option being registered multiple times in yargs, also this applies to another commands not just the ng test.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions