summaryrefslogtreecommitdiffstats
path: root/src/ninja.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ninja.cc')
-rw-r--r--src/ninja.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/ninja.cc b/src/ninja.cc
index 0b3ffe5..ecf8421 100644
--- a/src/ninja.cc
+++ b/src/ninja.cc
@@ -195,9 +195,13 @@ bool CollectTargetsFromArgs(State* state, int argc, char* argv[],
} else {
*err = "unknown target '" + path + "'";
- Node* suggestion = state->SpellcheckNode(path);
- if (suggestion) {
- *err += ", did you mean '" + suggestion->path() + "'?";
+ if (path == "clean") {
+ *err += ", did you mean 'ninja -t clean'?";
+ } else {
+ Node* suggestion = state->SpellcheckNode(path);
+ if (suggestion) {
+ *err += ", did you mean '" + suggestion->path() + "'?";
+ }
}
return false;
}