]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - main.c
gitignore: be more clever
[xonotic/gmqcc.git] / main.c
diff --git a/main.c b/main.c
index ff0e41dc7f3adc30ef38fbda0d79c61ae2df13c1..2b055d2210f35bf59d556053f366e27c7c12e3d8 100644 (file)
--- a/main.c
+++ b/main.c
@@ -53,6 +53,8 @@ static void version() {
     );
 #ifdef GMQCC_GITINFO
     con_out("git build: %s\n", GMQCC_GITINFO);
+#elif defined(GMQCC_VERION_TYPE_DEVEL)
+    con_out("development build\n");
 #endif
 }
 
@@ -463,6 +465,18 @@ static bool options_parse(int argc, char **argv) {
                         opts.quiet = true;
                         break;
                     }
+                    else if (!strcmp(argv[0]+2, "correct")) {
+                        opts.correction = true;
+                        break;
+                    }
+                    else if (!strcmp(argv[0]+2, "no-correct")) {
+                        opts.correction = false;
+                        break;
+                    }
+                    else if (!strcmp(argv[0]+2, "add-info")) {
+                        opts.add_info = true;
+                        break;
+                    }
                     else {
             /* All long options with arguments */
                         if (options_long_witharg("output", &argc, &argv, &argarg)) {