projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
246f017
)
Don't say -h is invalid whereas it is supported.
author
Nicolas Despres
<nicolas.despres@gmail.com>
Thu, 27 Sep 2012 18:49:22 +0000
(20:49 +0200)
committer
Nicolas Despres
<nicolas.despres@gmail.com>
Thu, 27 Sep 2012 18:53:33 +0000
(20:53 +0200)
getopt_long(3) was reporting "ninja: invalid option -- h" when "ninja -h" was
called.
Regression most probably introduced by
5fdb12ed5cec4e1c853c64026142d088ff5519e1
src/ninja.cc
patch
|
blob
|
history
diff --git
a/src/ninja.cc
b/src/ninja.cc
index
6046d72
..
76b2764
100644
(file)
--- a/
src/ninja.cc
+++ b/
src/ninja.cc
@@
-740,7
+740,7
@@
int NinjaMain(int argc, char** argv) {
int opt;
while (tool_name.empty() &&
- (opt = getopt_long(argc, argv, "d:f:j:k:l:nt:vC:", kLongOptions,
+ (opt = getopt_long(argc, argv, "d:f:j:k:l:nt:vC:
h
", kLongOptions,
NULL)) != -1) {
switch (opt) {
case 'd':