summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Niklas Hasse <jhasse@bixense.com>2018-11-13 16:56:22 +0100
committerJan Niklas Hasse <jhasse@bixense.com>2018-11-13 16:56:22 +0100
commitbf7517505ad1def03e13bec2b4131399331bc5c4 (patch)
tree817ba0e67711137a4407cbd13e8f47ab1f2e9a52
parentd3ea98a8c3ea1782eaead13259c83afcf02d8090 (diff)
downloadninja-bf7517505ad1def03e13bec2b4131399331bc5c4.tar.gz
Add --verbose as an alternative spelling for -v, fix #1310
-rw-r--r--src/ninja.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 8108f21..b919950 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -210,7 +210,7 @@ void Usage(const BuildConfig& config) {
" -k N keep going until N jobs fail (0 means infinity) [default=1]\n"
" -l N do not start new jobs if the load average is greater than N\n"
" -n dry run (don't run commands but act like they succeeded)\n"
-" -v show all command lines while building\n"
+" -v, --verbose show all command lines while building\n"
"\n"
" -d MODE enable debugging (use '-d list' to list modes)\n"
" -t TOOL run a subtool (use '-t list' to list subtools)\n"
@@ -1102,6 +1102,7 @@ int ReadFlags(int* argc, char*** argv,
const option kLongOptions[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", no_argument, NULL, OPT_VERSION },
+ { "verbose", no_argument, NULL, 'v' },
{ NULL, 0, NULL, 0 }
};