Browse files

Add --tags documentation to --help (CLI)

  • Loading branch information...
1 parent 01cfa8c commit 7c5e904bd531ada4d7c0ac1f7013034831d2c548 @jbpros jbpros committed Feb 3, 2012
Showing with 26 additions and 1 deletion.
  1. +26 −1 lib/cucumber/cli.js
@@ -32,7 +32,32 @@ var Cli = function(argv) {
Files under directories named \"support\" are always\n\
loaded first.\n\
- --version Display Cucumber.js's version.\n\
+-t, --tags TAG_EXPRESSION Only execute the features or scenarios with tags\n\
+ matching TAG_EXPRESSION. Scenarios inherit tags\n\
+ declared on the Feature level. The simplest\n\
+ TAG_EXPRESSION is simply a tag. Example:\n\
+ --tags @dev\n\
+ When a tag in a tag expression starts with a ~,\n\
+ this represents boolean NOT. Example:\n\
+ --tags ~@dev\n\
+ A tag expression can have several tags separated\n\
+ by a comma, which represents logical OR. Example:\n\
+ --tags @dev,@wip\n\
+ The --tags option can be specified several times,\n\
+ and this represents logical AND. Example:\n\
+ --tags @foo,~@bar --tags @zap.\n\
+ This represents the following boolean expression:\n\
+ (@foo || !@bar) && @zap.\n\
+ Beware that if you want to use several negative\n\
+ tags to exclude several tags you have to use\n\
+ logical AND: --tags ~@fixme --tags ~@buggy.\n\
+-v, --version Display Cucumber.js's version.\n\
-h, --help You're looking at it.\n");

0 comments on commit 7c5e904

Please sign in to comment.