diff options
author | Evan Martin <martine@danga.com> | 2012-04-26 15:02:15 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2012-04-26 15:02:15 (GMT) |
commit | d636c1535688033e120996fee42b49a8b5518278 (patch) | |
tree | 1bdcaf8d94215793f8fdaf754d8d6d69aba319eb /src/ninja.cc | |
parent | e3b98c7fe46d1ecfc6246b76fbc2282ad61c0afb (diff) | |
download | Ninja-d636c1535688033e120996fee42b49a8b5518278.zip Ninja-d636c1535688033e120996fee42b49a8b5518278.tar.gz Ninja-d636c1535688033e120996fee42b49a8b5518278.tar.bz2 |
suggest ninja -h when someone runs 'ninja help'
Diffstat (limited to 'src/ninja.cc')
-rw-r--r-- | src/ninja.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ninja.cc b/src/ninja.cc index c2426c4..8b91a12 100644 --- a/src/ninja.cc +++ b/src/ninja.cc @@ -199,6 +199,8 @@ bool CollectTargetsFromArgs(State* state, int argc, char* argv[], if (path == "clean") { *err += ", did you mean 'ninja -t clean'?"; + } else if (path == "help") { + *err += ", did you mean 'ninja -h'?"; } else { Node* suggestion = state->SpellcheckNode(path); if (suggestion) { |