From: Evan Prodromou Date: Mon, 22 Jun 2009 23:44:29 +0000 (-0700) Subject: correctly detect default short options X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=010d168aaa908073d03be66259042f921dfb861e;p=quix0rs-gnu-social.git correctly detect default short options --- diff --git a/scripts/commandline.inc b/scripts/commandline.inc index a245b2f163..4a7757fb98 100644 --- a/scripts/commandline.inc +++ b/scripts/commandline.inc @@ -91,22 +91,22 @@ foreach ($options as $option) { switch ($option[0]) { case '--server': - case '-s': + case 's': $server = $option[1]; break; case '--path': - case '-p': + case 'p': $path = $option[1]; break; case '--conf': - case '-c': + case 'c': $conffile = $option[1]; break; case '--help': - case '-h': + case 'h': show_help(); } }