shorten command names
authorChristian Weiske <cweiske@cweiske.de>
Thu, 16 Dec 2010 18:15:38 +0000 (19:15 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 16 Dec 2010 18:15:38 +0000 (19:15 +0100)
scripts/linksys-wrt3g.php

index eb056a90fb7c14bde174ae37fc822f592013509b..219e081c1c87be924830d8e756b32e1c4a622dac 100755 (executable)
@@ -89,16 +89,16 @@ $stCmd = $parser->addCommand(
     )
 );
 $stCmd = $parser->addCommand(
-    'cardstatus',
+    'card',
     array(
-        'aliases'     => array('c', 'cs'),
-        'description' => 'Show the card/SIM status'
+        'aliases'     => array('c'),
+        'description' => 'Show the PC card/SIM status'
     )
 );
 $stCmd = $parser->addCommand(
-    'allstatus',
+    'all',
     array(
-        'aliases'     => array('a', 'as'),
+        'aliases'     => array('a'),
         'description' => 'Show all status details'
     )
 );
@@ -143,13 +143,13 @@ try {
         }
         break;
 
-    case 'allstatus':
-    case 'cardstatus':
+    case 'all':
+    case 'card':
     case 'status':
     default:
-        if ($result->command_name == 'allstatus') {
+        if ($result->command_name == 'all') {
             $arStatus = $router->getFullStatus();
-        } else if ($result->command_name == 'cardstatus') {
+        } else if ($result->command_name == 'card') {
             $arStatus = $router->getCardStatus();
         } else {
             $arStatus = $router->getConnectionStatus();