Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 7c5e904bd531ada4d7c0ac1f7013034831d2c548 1 parent 01cfa8c
@jbpros jbpros authored
Showing with 26 additions and 1 deletion.
  1. +26 −1 lib/cucumber/cli.js
View
27 lib/cucumber/cli.js
@@ -32,7 +32,32 @@ var Cli = function(argv) {
Files under directories named \"support\" are always\n\
loaded first.\n\
\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\
+\n\
+ When a tag in a tag expression starts with a ~,\n\
+ this represents boolean NOT. Example:\n\
+ --tags ~@dev\n\
+\n\
+ A tag expression can have several tags separated\n\
+ by a comma, which represents logical OR. Example:\n\
+ --tags @dev,@wip\n\
+\n\
+ The --tags option can be specified several times,\n\
+ and this represents logical AND. Example:\n\
+ --tags @foo,~@bar --tags @zap.\n\
+\n\
+ This represents the following boolean expression:\n\
+ (@foo || !@bar) && @zap.\n\
+\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\
+\n\
+-v, --version Display Cucumber.js's version.\n\
\n\
-h, --help You're looking at it.\n");
callback(true);
Please sign in to comment.
Something went wrong with that request. Please try again.