1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Fix broken unknown short option reporting.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-12-28 02:03:04 +01:00
parent ffe59b9c7c
commit fad73ab3e1
6 changed files with 6 additions and 6 deletions

View file

@ -77,7 +77,7 @@ int main(int argc, char* argv[])
case 's': symbolic = true; break;
case 'v': verbose = true; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}

View file

@ -109,7 +109,7 @@ int main(int argc, char* argv[])
case 'p': parents = true; break;
case 'v': verbose = true; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}

View file

@ -170,7 +170,7 @@ int main(int argc, char* argv[])
case 'R': recursive = true; break;
case 'v': verbose = true; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}

View file

@ -78,7 +78,7 @@ int main(int argc, char* argv[])
case 'p': parents = true; break;
case 'v': verbose = true; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}

View file

@ -102,7 +102,7 @@ int main(int argc, char* argv[])
case 'i': flags |= PRINT_HWPLATFORM; break;
case 'o': flags |= PRINT_OPSYS; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}

View file

@ -164,7 +164,7 @@ int main(int argc, char* argv[])
{
case 'a': all = true; break;
default:
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, arg[i]);
fprintf(stderr, "%s: unknown option -- '%c'\n", argv0, c);
help(stderr, argv0);
exit(1);
}