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.
This commit is contained in:
Arun Raghavan 2025-08-25 09:48:19 -04:00 committed by Wim Taymans
parent 1c032f6ad6
commit 487c7ee933

View file

@ -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);