Remove -v as option for printing version # (based on PR feedback).
authorEddie Scholtz <eascholtz@gmail.com>
Mon, 1 Feb 2016 21:54:09 +0000 (13:54 -0800)
committerEddie Scholtz <eascholtz@gmail.com>
Mon, 1 Feb 2016 21:54:09 +0000 (13:54 -0800)
src/flatc.cpp

index d66239c..a493612 100644 (file)
@@ -99,7 +99,7 @@ static void Error(const std::string &err, bool usage, bool show_exe_name) {
       "  -o PATH         Prefix PATH to all generated files.\n"
       "  -I PATH         Search for includes in the specified path.\n"
       "  -M              Print make rules for generated files.\n"
-      "  -v, --version   Print the version number of flatc and exit.\n"
+      "  --version       Print the version number of flatc and exit.\n"
       "  --strict-json   Strict JSON: field names must be / will be quoted,\n"
       "                  no trailing commas in tables/vectors.\n"
       "  --defaults-json Output fields whose value is the default when\n"
@@ -191,7 +191,7 @@ int main(int argc, const char *argv[]) {
         schema_binary = true;
       } else if(arg == "-M") {
         print_make_rules = true;
-      } else if(arg == "-v" || arg == "--version") {
+      } else if(arg == "--version") {
         printf("flatc version %s\n", FLATC_VERSION);
         exit(0);
       } else {