1
0
Fork 0
mirror of https://github.com/yshui/picom.git synced 2024-11-11 13:51:02 -05:00

Exit with exit code 1 when argument parsing failed

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-01-30 22:19:05 +00:00
parent 8b2ea1d125
commit 4783ea8191
No known key found for this signature in database
GPG key ID: 37C999F617EA1A47

View file

@ -500,6 +500,7 @@ bool get_early_config(int argc, char *const *argv, char **config_file, bool *all
log_warn("--no-name-pixmap will be ignored");
} else if (o == '?' || o == ':') {
usage(1);
*exit_code = 1;
return true;
}
}