Skip to content
This repository has been archived by the owner on Aug 6, 2023. It is now read-only.

Commit

Permalink
Add aliases for cli options.
Browse files Browse the repository at this point in the history
  • Loading branch information
austinkelleher committed Sep 11, 2017
1 parent 81dd24f commit 6c6c109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ Options:
--pattern -p * Pattern to run tests. Either a single file or glob pattern. [string]
--reporter The mocha test reporter to use. (Defaults to "spec") [string]
--reporter -r The mocha test reporter to use. (Defaults to "spec") [string]
--useColors Whether use colors for test output. (Defaults to true) [boolean]
--ui The mocha ui to use. (Defaults to "bdd") [string]
--useColors -c Whether use colors for test output. (Defaults to true) [boolean]
--ui -u The mocha ui to use. (Defaults to "bdd") [string]
```

## Configuring the test file
Expand Down
6 changes: 3 additions & 3 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const parser = argly
type: 'string[]',
description: 'Pattern to run tests. Either a single file or glob pattern.'
},
'--reporter': {
'--reporter -r': {
type: 'string',
description: 'The mocha test reporter to use. (Defaults to "spec")'
},
'--useColors': {
'--useColors -c': {
type: 'boolean',
description: 'Whether use colors for test output. (Defaults to true)'
},
'--ui': {
'--ui -u': {
type: 'string',
description: 'The mocha ui to use. (Defaults to "bdd")'
}
Expand Down

0 comments on commit 6c6c109

Please sign in to comment.