From f41b94022e5d9b8ecfdfd8feb3479127d1a20964 Mon Sep 17 00:00:00 2001 From: Brandon McGinty Date: Sat, 12 Feb 2022 15:29:23 -0600 Subject: [PATCH] use correct case for --pid-file option This permits --pid-file to be specified. The getopt_long option was looking for a lowercase p, and the pid-file option used an uppercase P. This meant that pid-file was never settable. --- src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.c b/src/cli.c index bc25c79..8453587 100644 --- a/src/cli.c +++ b/src/cli.c @@ -77,7 +77,7 @@ void process_cli(int argc, char **argv) do { opt = getopt_long(argc, argv, shortOptions, longOptions, NULL); switch (opt) { - case 'p': + case 'P': pidPath = dupeString(optarg); break; case 'V':