Index: src/flags.cc |
diff --git a/src/flags.cc b/src/flags.cc |
index f67defd5a98948d55b62b8fbe4840d3c1c3a73fc..f7ae004ac26e2bf7e80583b0c4e87b19fdddb5ca 100644 |
--- a/src/flags.cc |
+++ b/src/flags.cc |
@@ -429,6 +429,10 @@ int FlagList::SetFlagsFromCommandLine(int* argc, |
PrintF(stderr, "Error: illegal value for flag %s of type %s\n" |
"Try --help for options\n", |
arg, Type2String(flag->type())); |
+ if (is_bool_type) { |
+ PrintF(stderr, |
+ "To set or unset a boolean flag, use --flag or --no-flag.\n"); |
+ } |
return_code = j; |
break; |
} |