Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular/cli): handle duplicate arguments #22966

Merged
merged 1 commit into from
Apr 11, 2022
Merged

fix(@angular/cli): handle duplicate arguments #22966

merged 1 commit into from
Apr 11, 2022

Commits on Apr 11, 2022

  1. fix(@angular/cli): handle duplicate arguments

    With this change we add a Yargs middleware that normalizes non Array options when the argument has been provided multiple times.
    
    By default, when an option is non array and it is provided multiple times in the command line, yargs
    will not override it's value but instead it will be changed to an array unless `duplicate-arguments-array` is disabled.
    But this option also have an effect on real array options which isn't desired.
    
    See: yargs/yargs-parser#163 (comment)
    
    Closes #22956
    alan-agius4 committed Apr 11, 2022
    Configuration menu
    Copy the full SHA
    23784f2 View commit details
    Browse the repository at this point in the history