From 8f00012b283a8c4a7bfd8b864cf2e77a73a97a5b Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Sat, 10 Jan 2026 04:22:14 -0800 Subject: [PATCH] Improve error message --- die-with-parent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }