diff --git a/Command-line.md b/Command-line.md index d601b54..05e402c 100644 --- a/Command-line.md +++ b/Command-line.md @@ -8,6 +8,7 @@ Note that options are described according to the following pattern: ` -h, -?, --help`
` -n, --nothrow`
` -t, --test`
+ ` -g, --tag`
` -r, --reporter`
` -b, --break`
` -s, --success`
@@ -59,6 +60,26 @@ Examples: start with 'a/b/', except 'a/b/c', which is included +
+ + +
+-g, --tag  <tagspec> [, <tagspec> ...]
+
+ +This option allows one or more tags or tag patterns to be specified. +Each tag is enclosed in square brackets. A series of tags form an AND expression wheras a comma seperated sequence forms an OR expression. e.g.: + + -g [one][two],[three] + +This matches all tests tagged [one] and [two], as well as all tests tagged [three]. + +Tags can be negated with the ~ character. This removed matching tests from the set. e.g.: + + -g [one]~[two] + +matches all tests tagged [one], except those also tagged [two] +
## Choosing a reporter to use