Browse files

Replace "Common" with "Available" in help text.

"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...
1 parent 185a7d4 commit 091508459e91be6da6ecebb6d92e709b98b4567d @pcapriotti committed Jul 30, 2012
Showing with 5 additions and 5 deletions.
  1. +1 −1 Options/Applicative/Help.hs
  2. +1 −1 README.md
  3. +1 −1 optparse-applicative.cabal
  4. +1 −1 tests/cabal.err.txt
  5. +1 −1 tests/hello.err.txt
View
2 Options/Applicative/Help.hs
@@ -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)
View
2 README.md
@@ -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
View
2 optparse-applicative.cabal
@@ -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
View
2 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
View
2 tests/hello.err.txt
@@ -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.