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

cli: use kebab-case for --retry-tag-filter arg #1293

Merged
merged 14 commits into from
Mar 17, 2020
Prev Previous commit
Next Next commit
whoops remove arg we dont need
davidjgoss committed Feb 22, 2020
commit 04db71c301a8e04dfb257b41a1e1940c85eae54a
4 changes: 2 additions & 2 deletions src/cli/argv_parser.ts
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ const ArgvParser = {
return value
},

validateRetryOptions(argv: string[], options: IParsedArgvOptions): void {
validateRetryOptions(options: IParsedArgvOptions): void {
if (options.retryTagFilter !== '' && options.retry === 0) {
throw new Error(
'a positive --retry count must be specified when setting --retry-tag-filter'
@@ -217,7 +217,7 @@ const ArgvParser = {

program.parse(argv)
const options = program.opts() as IParsedArgvOptions
ArgvParser.validateRetryOptions(argv, options)
ArgvParser.validateRetryOptions(options)

return {
options,