Skip to content

Commit a830cd4

Browse files
committed
options help cleanups
1 parent afcd684 commit a830cd4

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/shelltest.hs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ proghelpsuffix = [
4848

4949
data Args = Args {
5050
list :: Bool
51+
,include :: [String]
52+
,exclude :: [String]
5153
,all_ :: Bool
5254
,color :: Bool
5355
,diff :: Bool
5456
,precise :: Bool
5557
,hide_successes :: Bool
5658
,xmlout :: String
5759
,defmacro :: [String]
58-
,include :: [String]
59-
,exclude :: [String]
6060
,execdir :: Bool
6161
,extension :: String
6262
,with :: String
@@ -68,23 +68,23 @@ data Args = Args {
6868
} deriving (Show, Data, Typeable)
6969

7070
argdefs = Args {
71-
list = def &= help "List all parsed tests and stop"
72-
,all_ = def &= help "Don't truncate output, even if large"
71+
list = def &= help "List the names of all tests found"
72+
,include = def &= name "i" &= typ "PAT" &= help "Include tests whose name contains this glob pattern (eg: -i1 -i{4,5,6})"
73+
,exclude = def &= name "x" &= typ "STR" &= help "Exclude test files whose path contains STR"
74+
,all_ = def &= help "Show all output without truncating, even if large"
7375
,color = def &= help "Show colored output if your terminal supports it"
74-
,diff = def &= name "d" &= help "Show expected output mismatches in diff format"
75-
,precise = def &= help "Show expected/actual output precisely (eg whitespace)"
76+
,diff = def &= name "d" &= help "Show differences between expected/actual output"
77+
,precise = def &= help "Show expected/actual output precisely, with quoting"
7678
,hide_successes = def &= explicit &= name "hide-successes" &= help "Show only test failures"
77-
,xmlout = def &= typ "FILE" &= help "Specify file to store test results in xml format."
78-
,defmacro = def &= name "D" &= typ "D=DEF" &= help "Specify a macro that is evaluated by preprocessor before the test files are parsed. D stands for macro definition that is replaced with the value of DEF."
79-
,include = def &= name "i" &= typ "PAT" &= help "Include tests whose name contains this glob pattern"
80-
,exclude = def &= name "x" &= typ "STR" &= help "Exclude test files whose path contains STR"
81-
,execdir = def &= help "Run tests from within the test file's directory"
79+
,xmlout = def &= typ "FILE" &= help "Save test results to FILE in XML format."
80+
,defmacro = def &= name "D" &= typ "D=DEF" &= help "Define a macro D to be replaced by DEF while parsing test files."
81+
,execdir = def &= help "Run tests from within each test file's directory"
8282
,extension = ".test" &= typ "EXT" &= help "File suffix of test files (default: .test)"
83-
,with = def &= typ "EXECUTABLE" &= help "Replace the first word of (unindented) test commands"
83+
,with = def &= typ "EXE" &= help "Replace the first word of test commands with EXE (unindented commands only)"
8484
,timeout = def &= name "o" &= typ "SECS" &= help "Number of seconds a test may run (default: no limit)"
8585
,threads = def &= name "j" &= typ "N" &= help "Number of threads for running tests (default: 1)"
86-
,debug = def &= help "Show debug info, for troubleshooting"
87-
,debug_parse = def &= help "Show test file parsing info and stop"
86+
,debug = def &= help "Show debug info while running"
87+
,debug_parse = def &= help "Show test file parsing results and stop"
8888
,testpaths = def &= args &= typ "TESTFILES|TESTDIRS"
8989
}
9090
&= helpArg [explicit, name "help", name "h"]

0 commit comments

Comments
 (0)