also spell-check the 'clean' tool; abort on misspelling
authorEvan Martin <martine@danga.com>
Mon, 5 Dec 2011 21:20:49 +0000 (13:20 -0800)
committerEvan Martin <martine@danga.com>
Mon, 5 Dec 2011 21:20:49 +0000 (13:20 -0800)
src/ninja.cc

index 808099c..616de81 100644 (file)
@@ -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;