diff --git a/die-with-parent.c b/die-with-parent.c index c1268de..c005923 100644 --- a/die-with-parent.c +++ b/die-with-parent.c @@ -149,7 +149,7 @@ int main(int argc, char *const *argv) { } break; case ':': if (isprint(optopt)) { - eprintf("option requires argument: -%c", optopt); + eprintf("option requires argument: %c", optopt); } else { eprintf("option requires argument: 0x%x", optopt); } @@ -157,7 +157,7 @@ int main(int argc, char *const *argv) { break; case '?': if (isprint(optopt)) { - eprintf("unknown option: -%c", optopt); + eprintf("unknown option: %c", optopt); } else { eprintf("unknown option: 0x%x", optopt); }