mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-24 01:40:12 -05:00
parent
3fa3c58c8b
commit
c9de30e2bc
1 changed files with 1 additions and 6 deletions
7
client.c
7
client.c
|
|
@ -78,7 +78,7 @@ main(int argc, char *const *argv)
|
||||||
bool hold = false;
|
bool hold = false;
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
int c = getopt_long(argc, argv, "+:t:a:s:l::hv", longopts, NULL);
|
int c = getopt_long(argc, argv, "+t:a:s:l::hv", longopts, NULL);
|
||||||
if (c == -1)
|
if (c == -1)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
@ -138,12 +138,7 @@ main(int argc, char *const *argv)
|
||||||
print_usage(prog_name);
|
print_usage(prog_name);
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
|
|
||||||
case ':':
|
|
||||||
fprintf(stderr, "error: -%c: missing required argument\n", optopt);
|
|
||||||
return EXIT_FAILURE;
|
|
||||||
|
|
||||||
case '?':
|
case '?':
|
||||||
fprintf(stderr, "error: -%c: invalid option\n", optopt);
|
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue