From 25ae75ac13be3f8cc185b5175c2e309522f0bb73 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 22 Apr 2025 07:31:34 +0530 Subject: [PATCH] A better error message when the user tries to use = with a short option. See #8556 --- kitty/launcher/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kitty/launcher/main.c b/kitty/launcher/main.c index 0fe7ba50d..582a72bf6 100644 --- a/kitty/launcher/main.c +++ b/kitty/launcher/main.c @@ -409,6 +409,7 @@ handle_option_value: char buf[2] = {0}; for (int i = 1; arg[i] != 0; i++) { switch(arg[i]) { + case '=': fprintf(stderr, "= is not allowed in short options, only long options. -d=xyz is illegal, --directory=xyz is legal. Use -d xyz instead.\n"); exit(1); break; case 'v': opts.version_requested = true; break; case '1': opts.single_instance = true; break; default: