mirror of
https://github.com/xHyroM/gimi.git
synced 2024-11-24 08:21:04 +01:00
fix: return exit code 1 without args
This commit is contained in:
parent
e937523a25
commit
7e9d29d806
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
if (argc == 1) {
|
if (argc == 1) {
|
||||||
cli_print_help();
|
cli_print_help();
|
||||||
return 0;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
|
if (strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue