Browse Source

Add shortflags to the CLI

babel-plugin-for-integration-tests
Juan Soto 9 years ago
committed by vdemedes
parent
commit
5d36a8045d
  1. 22
      cli.js
  2. 12
      readme.md

22
cli.js

@ -41,13 +41,13 @@ var cli = meow([
' ava [<file|folder|glob> ...]', ' ava [<file|folder|glob> ...]',
'', '',
'Options', 'Options',
' --init Add AVA to your project', ' --init Add AVA to your project',
' --fail-fast Stop after first test failure', ' --fail-fast Stop after first test failure',
' --serial Run tests serially', ' --serial, -s Run tests serially',
' --require Module to preload (Can be repeated)', ' --require, -r Module to preload (Can be repeated)',
' --tap Generate TAP output', ' --tap, -t Generate TAP output',
' --verbose Enable verbose output', ' --verbose, -v Enable verbose output',
' --no-cache Disable the transpiler cache', ' --no-cache Disable the transpiler cache',
'', '',
'Examples', 'Examples',
' ava', ' ava',
@ -70,7 +70,13 @@ var cli = meow([
'serial', 'serial',
'tap' 'tap'
], ],
default: conf default: conf,
alias: {
t: 'tap',
v: 'verbose',
r: 'require',
s: 'serial'
}
}); });
updateNotifier({pkg: cli.pkg}).notify(); updateNotifier({pkg: cli.pkg}).notify();

12
readme.md

@ -107,12 +107,12 @@ $ ava --help
ava [<file|folder|glob> ...] ava [<file|folder|glob> ...]
Options Options
--init Add AVA to your project --init Add AVA to your project
--fail-fast Stop after first test failure --fail-fast Stop after first test failure
--serial Run tests serially --serial, -s Run tests serially
--require Module to preload (Can be repeated) --require, -r Module to preload (Can be repeated)
--tap Generate TAP output --tap, -t Generate TAP output
--verbose Enable verbose output --verbose, -v Enable verbose output
Examples Examples
ava ava

Loading…
Cancel
Save