Skip to content

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

Closed

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.

Activity

  1. added theissue type on Jul 12, 2025
  2. added
    freq1: low
    on Jul 12, 2025
  3. changed the title [-]`define` option is being included multiple times in the help section[/-] [+]`define` option is being included multiple times in the JSON help[/+] on Jul 12, 2025
  4. added 2 commits that reference this issue on Jul 21, 2025
    f53894f
    06f95d5
  5. added 2 commits that reference this issue on Jul 21, 2025
    fefa7a4
    9678522
  6. angular-automatic-lock-bot commented on Aug 21, 2025

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  7. locked and limited conversation to collaborators on Aug 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @angular/clifreq1: lowseverity3: brokentype: bug/fix

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions