choke on invalid options on the cmd line

This commit is contained in:
Dana Jansens 2003-03-21 10:41:56 +00:00
parent 94d871a390
commit 178fdf254d

View 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);
}
}
}