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:
parent
ffe59b9c7c
commit
fad73ab3e1
6 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue