Commit e910a926 authored by Lennart Spitzner's avatar Lennart Spitzner
Browse files

commandline-documentation: Clear warning; Minor clarifications

parent 7d254740
...@@ -380,7 +380,7 @@ configureCommand progConf = CommandUI ...@@ -380,7 +380,7 @@ configureCommand progConf = CommandUI
++ "\n" ++ "\n"
++ "The configuration affects several other commands, " ++ "The configuration affects several other commands, "
++ "including build, test, bench, run, repl.\n" ++ "including build, test, bench, run, repl.\n"
, commandNotes = Just $ \pname -> programFlagsDescription progConf , commandNotes = Just $ \_pname -> programFlagsDescription progConf
, commandUsage = \pname -> , commandUsage = \pname ->
"Usage: " ++ pname ++ " configure [FLAGS]\n" "Usage: " ++ pname ++ " configure [FLAGS]\n"
, commandDefaultFlags = defaultConfigFlags progConf , commandDefaultFlags = defaultConfigFlags progConf
......
...@@ -851,8 +851,8 @@ runCommand = CommandUI { ...@@ -851,8 +851,8 @@ runCommand = CommandUI {
"Examples:\n" "Examples:\n"
++ " " ++ pname ++ " run\n" ++ " " ++ pname ++ " run\n"
++ " Run the only executable in the current package;\n" ++ " Run the only executable in the current package;\n"
++ " " ++ pname ++ " run foo -- --key=value\n" ++ " " ++ pname ++ " run foo -- --fooflag\n"
++ " Run the `foo` executable with some flag.\n", ++ " Works similar to `./foo --fooflag`.\n",
commandUsage = usageAlternatives "run" commandUsage = usageAlternatives "run"
["[FLAGS] [EXECUTABLE] [-- EXECUTABLE_FLAGS]"], ["[FLAGS] [EXECUTABLE] [-- EXECUTABLE_FLAGS]"],
commandDefaultFlags = mempty, commandDefaultFlags = mempty,
...@@ -957,7 +957,7 @@ getCommand = CommandUI { ...@@ -957,7 +957,7 @@ getCommand = CommandUI {
"Examples:\n" "Examples:\n"
++ " " ++ pname ++ " get hlint\n" ++ " " ++ pname ++ " get hlint\n"
++ " Download the latest stable version of hlint;\n" ++ " Download the latest stable version of hlint;\n"
++ " " ++ pname ++ " get lens -shead\n" ++ " " ++ pname ++ " get lens --source-repository=head\n"
++ " Download the source repository (i.e. git clone from github).\n", ++ " Download the source repository (i.e. git clone from github).\n",
commandUsage = usagePackages "get", commandUsage = usagePackages "get",
commandDefaultFlags = defaultGetFlags, commandDefaultFlags = defaultGetFlags,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment