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:
Uli Schlachter 2016-08-31 13:23:44 +02:00
parent 08e4c304cd
commit fd90061c24
1 changed files with 3 additions and 0 deletions

View File

@ -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 */