diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:41:56 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-03-21 10:41:56 +0000 |
| commit | 178fdf254d35c7af40ee5f09e7ade9d2fcdc5ec5 (patch) | |
| tree | 48c0fb399524ae88ce0af9ef0d1d88d908aa80d2 | |
| parent | 94d871a390d1892a5fdf00e2ba87b5145dfe6a86 (diff) | |
choke on invalid options on the cmd line
| -rw-r--r-- | openbox/openbox.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c index f410f312..a4f527b1 100644 --- a/openbox/openbox.c +++ b/openbox/openbox.c @@ -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); } } } |
