From 487c7ee93319384117a94f542c60ebc1dae152a4 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Mon, 25 Aug 2025 09:48:19 -0400 Subject: [PATCH] tools: Fix -C handling for pw-dump The short form needs to have a :: to signal an optional argument so that something like -Calways can work. --- src/tools/pw-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/pw-dump.c b/src/tools/pw-dump.c index 179e0c673..a79e6517b 100644 --- a/src/tools/pw-dump.c +++ b/src/tools/pw-dump.c @@ -1541,7 +1541,7 @@ int main(int argc, char *argv[]) colors = true; setlinebuf(data.out); - while ((c = getopt_long(argc, argv, "hVr:mNC", long_options, NULL)) != -1) { + while ((c = getopt_long(argc, argv, "hVr:mNC::", long_options, NULL)) != -1) { switch (c) { case 'h' : show_help(&data, argv[0], false);