Fix duplicated error message for unknown option

This commit is contained in:
Eric Fischer 2019-03-19 10:16:14 -07:00
parent ac12932089
commit e051c53051

View File

@ -3004,7 +3004,7 @@ int main(int argc, char **argv) {
break;
default: {
if (i != 'H') {
if (i != 'H' && i != '?') {
fprintf(stderr, "Unknown option -%c\n", i);
}
int width = 7 + strlen(argv[0]);