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

12
readme.md

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

Loading…
Cancel
Save