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:
parent
8b2ea1d125
commit
4783ea8191
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue