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 83c32e1dd6
commit 205427d7da
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

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;
}
}