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
parent caf72fd9bc
commit 28ed09b155

View file

@ -1600,7 +1600,7 @@ int main(int argc, char *argv[])
data.keysep_char = ":";
data.indent = INDENT;
while ((c = getopt_long(argc, argv, "hVr:mNCRi:s", long_options, NULL)) != -1) {
while ((c = getopt_long(argc, argv, "hVr:mNC::Ri:s", long_options, NULL)) != -1) {
switch (c) {
case 'h' :
show_help(&data, argv[0], false);