Skip to content

Commit 7118274

Browse files
committed
-h means --help, not --hide-successes
1 parent 3b9d0ce commit 7118274

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/shelltest.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ argdefs = Args {
7373
,color = def &= help "Show colored output if your terminal supports it"
7474
,diff = def &= name "d" &= help "Show expected output mismatches in diff format"
7575
,precise = def &= help "Show expected/actual output precisely (eg whitespace)"
76-
,hide_successes = def &= help "Show only test failures"
76+
,hide_successes = def &= explicit &= name "hide-successes" &= help "Show only test failures"
7777
,xmlout = def &= typ "FILE" &= help "Specify file to store test results in xml format."
7878
,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."
7979
,include = def &= name "i" &= typ "PAT" &= help "Include tests whose name contains this glob pattern"
@@ -87,6 +87,7 @@ argdefs = Args {
8787
,debug_parse = def &= help "Show test file parsing info and stop"
8888
,testpaths = def &= args &= typ "TESTFILES|TESTDIRS"
8989
}
90+
&= helpArg [explicit, name "help", name "h"]
9091
&= program progname
9192
&= summary progversion
9293
&= details proghelpsuffix

0 commit comments

Comments
 (0)