Skip to content

Commit

Permalink
Replace "Common" with "Available" in help text.
Browse files Browse the repository at this point in the history
"Common options" was intended as "all except internal", but it could be
interpreted as "global options" for a parser with commands.

Remove the possible confusion by using "Available options" instead,
which is also consistent with the label used for commands.
  • Loading branch information
pcapriotti committed Jul 30, 2012
1 parent 185a7d4 commit 0915084
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Options/Applicative/Help.hs
Expand Up @@ -96,7 +96,7 @@ parserHelpText pprefs pinfo = unlines
++ [ " " ++ line | line <- nn [pinfo^.infoProgDesc] ]
++ [ line | let opts = fullDesc pprefs p
, not (null opts)
, line <- ["", "Common options:"] ++ opts
, line <- ["", "Available options:"] ++ opts
, pinfo^.infoFullDesc ]
++ [ line | let cmds = cmdDesc p
, not (null cmds)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -59,7 +59,7 @@ help text:
Usage: hello --hello TARGET [--quiet]
Print a greeting for TARGET

Common options:
Available options:
-h,--help Show this help text
--hello TARGET Target for the greeting
--quiet Whether to be quiet
Expand Down
2 changes: 1 addition & 1 deletion optparse-applicative.cabal
Expand Up @@ -54,7 +54,7 @@ description:
>Usage: hello --hello TARGET [--quiet]
> Print a greeting for TARGET
>
>Common options:
>Available options:
> -h,--help Show this help text
> --hello TARGET Target for the greeting
> --quiet Whether to be quiet
Expand Down
2 changes: 1 addition & 1 deletion tests/cabal.err.txt
@@ -1,7 +1,7 @@
Usage: cabal configure [--enable-tests] [-f|--flags FLAGS]
Prepare to build the package

Common options:
Available options:
--enable-tests Enable compilation of test suites
-f,--flags FLAGS Enable the given flag
-h,--help Show this help text
2 changes: 1 addition & 1 deletion tests/hello.err.txt
Expand Up @@ -3,7 +3,7 @@ hello - a test for optparse-applicative
Usage: hello --hello TARGET [--quiet]
Print a greeting for TARGET

Common options:
Available options:
--hello TARGET Target for the greeting
--quiet Whether to be quiet
-h,--help Show this help text

0 comments on commit 0915084

Please sign in to comment.