Browse Source

Change to return 0 on -h/--help

master
cancel 6 years ago
parent
commit
5a4e79fa44
  1. 2
      cli_main.c
  2. 2
      tui_main.c

2
cli_main.c

@ -42,7 +42,7 @@ int main(int argc, char** argv) {
break; break;
case 'h': case 'h':
usage(); usage();
return 1; return 0;
case '?': case '?':
usage(); usage();
return 1; return 1;

2
tui_main.c

@ -368,7 +368,7 @@ int main(int argc, char** argv) {
switch (c) { switch (c) {
case 'h': case 'h':
usage(); usage();
return 1; return 0;
case Argopt_margins: case Argopt_margins:
margin_thickness = atoi(optarg); margin_thickness = atoi(optarg);
if (margin_thickness == 0 && strcmp(optarg, "0")) { if (margin_thickness == 0 && strcmp(optarg, "0")) {

Loading…
Cancel
Save