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.
This commit is contained in:
Brandon McGinty 2022-02-12 15:29:23 -06:00 committed by Alexander Epaneshnikov
commit 78e561fae9

View file

@ -77,7 +77,7 @@ void process_cli(int argc, char **argv)
do { do {
opt = getopt_long(argc, argv, shortOptions, longOptions, NULL); opt = getopt_long(argc, argv, shortOptions, longOptions, NULL);
switch (opt) { switch (opt) {
case 'p': case 'P':
pidPath = dupeString(optarg); pidPath = dupeString(optarg);
break; break;
case 'V': case 'V':