mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-16 07:47:22 +01:00
Make argument parsing errors fatal
When you run "awesome --foobar", a warning will be printed (by getopt_long()) and awesome just ignores the invalid argument. That's unusual and weird. This commit produces an error instead. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
08e4c304cd
commit
fd90061c24
1 changed files with 3 additions and 0 deletions
|
@ -524,6 +524,9 @@ main(int argc, char **argv)
|
|||
case 'r':
|
||||
replace_wm = true;
|
||||
break;
|
||||
default:
|
||||
exit_help(EXIT_FAILURE);
|
||||
break;
|
||||
}
|
||||
|
||||
/* Get XDG basedir data */
|
||||
|
|
Loading…
Reference in a new issue