summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-05 21:20:49 (GMT)
committerEvan Martin <martine@danga.com>2011-12-05 21:20:49 (GMT)
commit560221d0fc2d71b6b2993e2b429bec5e554c344e (patch)
treee5e12ad1c83c38129c75a4cbe8c946c8124fd194 /src
parenta988cb23ae20c440a1752c8377b89e7a1d45040c (diff)
downloadNinja-560221d0fc2d71b6b2993e2b429bec5e554c344e.zip
Ninja-560221d0fc2d71b6b2993e2b429bec5e554c344e.tar.gz
Ninja-560221d0fc2d71b6b2993e2b429bec5e554c344e.tar.bz2
also spell-check the 'clean' tool; abort on misspelling
Diffstat (limited to 'src')
-rw-r--r--src/ninja.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 808099c..616de81 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -562,13 +562,14 @@ reload:
return CmdClean(&state, argc+1, argv-1, config);
const char* suggestion = SpellcheckString(tool,
- "graph", "query", "browse", "targets", "rules", "commands", "list",
- NULL);
+ "graph", "query", "browse", "targets", "rules", "commands", "clean",
+ "list", NULL);
if (suggestion) {
Error("unknown tool '%s', did you mean '%s'?", tool.c_str(), suggestion);
} else {
Error("unknown tool '%s'", tool.c_str());
}
+ return 1;
}
BuildLog build_log;