Author | Jamozed <[email protected]> |
Date | 2020-06-27 12:02:14 |
Commit | 4fd512b6f182dcd8fa0fa14a1b0d7307650769ff |
Parent | 214225f8364e5bcd86df2313513fb4e32e081c37 |
id: Fix missing program name in error message
Diffstat
M | src/id.c | | | 5 | ++--- |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/id.c b/src/id.c index c246c38..2721fc0 100644 --- a/src/id.c +++ b/src/id.c @@ -71,9 +71,8 @@ int main(int argc, char *argv[]) { opt_t opt = OPTGET_INIT; opt.str = "Ggnru"; opt.lops = lops; int o; while ((o = optget(&opt, argv, 1)) != -1) switch (o) { case 'G': case 'g': case 'u': { - if (mode) { - error(1, "%s: options 'G', 'g', and 'u' are contradictory"); - } else { mode = (char)o; } break; + if (mode) { error(1, "%s: invalid option combination", argv[0]); } + else { mode = (char)o; } break; } case 'n': { nflag = true; break; } case 'r': { rflag = true; break; }