Skip to content

Commit 9245703

Browse files
committed
fix error message for 'long argument'
1 parent fb9e68f commit 9245703

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/apps/proj.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ int main(int argc, char **argv) {
501501
(void)printf("%s\n", pj_get_version());
502502
exit(0);
503503
}
504+
else {
505+
emess(1, "invalid option: %s", *argv);
506+
break;
507+
}
504508
default:
505509
emess(1, "invalid option: -%c", *arg);
506510
break;

0 commit comments

Comments
 (0)