From 33529b6e44561a86bfae8dd289779f2c3ce01c6e Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 16 Dec 2010 19:15:38 +0100 Subject: [PATCH] shorten command names --- scripts/linksys-wrt3g.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php index eb056a9..219e081 100755 --- a/scripts/linksys-wrt3g.php +++ b/scripts/linksys-wrt3g.php @@ -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(); -- 2.30.2