Skip to content

Commit

Permalink
feat(cli): display suggestions on error (#3216)
Browse files Browse the repository at this point in the history
Example:

```
stryker run --concurency 1

error: unknown option '--concurency'
(Did you mean --concurrency?)
```

Thanks to [`showSuggestionAfterError`](tj/commander.js#1590)
  • Loading branch information
nicojs committed Oct 20, 2021
1 parent a327e8b commit 9ed98e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/src/stryker-cli.ts
Expand Up @@ -163,6 +163,7 @@ export class StrykerCli {
`Choose whether or not to clean the temp dir (which is "${defaultValues.tempDirName}" inside the current working directory by default) after a successful run. The temp dir will never be removed when the run failed for some reason (for debugging purposes).`,
parseBoolean
)
.showSuggestionAfterError()
.parse(this.argv);

// Earliest opportunity to configure the log level based on the logLevel argument
Expand Down

0 comments on commit 9ed98e8

Please sign in to comment.