]> Dogcows Code - chaz/openbox/commitdiff
choke on invalid options on the cmd line
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:41:56 +0000 (10:41 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:41:56 +0000 (10:41 +0000)
openbox/openbox.c

index f410f31240a52d9a2498b798e5d6459663d7a0e5..a4f527b1824690ac6f61731459cc58ece0104dae 100644 (file)
@@ -271,6 +271,10 @@ void parse_args(int argc, char **argv)
                 g_printerr("-rc requires an argument\n");
             else
                 ob_rc_path = argv[++i];
+        } else {
+            g_printerr("Invalid option: '%s'\n\n", argv[i]);
+            print_help();
+            exit(1);
         }
     }
 }
This page took 0.023429 seconds and 4 git commands to generate.