Skip to content

Commit b48fd5f

Browse files
committed
Show usage text before invalid short-option error
1 parent 35cc668 commit b48fd5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,8 +1010,9 @@ int main(int argc, char *argv[]) {
10101010
break;
10111011

10121012
default:
1013-
pmsg_error("invalid option -%c\n\n", ch);
10141013
usage();
1014+
msg_error("\n");
1015+
pmsg_error("invalid option -%c\n", ch);
10151016
exit(1);
10161017
}
10171018
}

0 commit comments

Comments
 (0)