]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correctly detect default short options
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Jun 2009 23:44:29 +0000 (16:44 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 22 Jun 2009 23:44:29 +0000 (16:44 -0700)
scripts/commandline.inc

index a245b2f1639cacb02179049da3033d9ff0f55195..4a7757fb98f13e43c47bf55cdd0841da848304fd 100644 (file)
@@ -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();
     }
 }