We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If we use the same parameter multiple times yargs turns them into an array.
npx code-pushup --format=md --config=stdout turns the args into {format: ['md', 'stdout']}
npx code-pushup --format=md --config=stdout
{format: ['md', 'stdout']}
This is wanted behaviour as forms is an array already.
In cases where we would need to overwrite CLI args that are no arrays this in introducing a wrong data structure.
npx code-pushup --config=./config.a.ts --config=./config.b.ts turns the args into {config: ['config.a.ts', 'config.b.ts']}
npx code-pushup --config=./config.a.ts --config=./config.b.ts
{config: ['config.a.ts', 'config.b.ts']}
We should implement a check in the config middleware to take the last value only of the wrong array.
The text was updated successfully, but these errors were encountered:
fix(cli): parse multiple config args to last item of array
13c3b23
Closes #146 #146
fix(cli): parse multiple config args to last item of array (#164)
7c81f81
Closes #146
MishaSeredenkoPushBased
Successfully merging a pull request may close this issue.
If we use the same parameter multiple times yargs turns them into an array.
npx code-pushup --format=md --config=stdout
turns the args into{format: ['md', 'stdout']}
This is wanted behaviour as forms is an array already.
In cases where we would need to overwrite CLI args that are no arrays this in introducing a wrong data structure.
npx code-pushup --config=./config.a.ts --config=./config.b.ts
turns the args into{config: ['config.a.ts', 'config.b.ts']}
We should implement a check in the config middleware to take the last value only of the wrong array.
The text was updated successfully, but these errors were encountered: