diff options
author | Evan Martin <martine@danga.com> | 2011-12-05 21:20:49 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-12-05 21:20:49 (GMT) |
commit | 560221d0fc2d71b6b2993e2b429bec5e554c344e (patch) | |
tree | e5e12ad1c83c38129c75a4cbe8c946c8124fd194 /src | |
parent | a988cb23ae20c440a1752c8377b89e7a1d45040c (diff) | |
download | Ninja-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.cc | 5 |
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; |