choke on invalid options on the cmd line
This commit is contained in:
parent
94d871a390
commit
178fdf254d
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue