From d636c1535688033e120996fee42b49a8b5518278 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Thu, 26 Apr 2012 08:02:15 -0700 Subject: [PATCH] suggest ninja -h when someone runs 'ninja help' --- src/ninja.cc | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.7.4