From 8735a31fb391e9ef228f23873addb015385c77b4 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Wed, 15 Dec 2010 18:55:44 +0100 Subject: add some simple logging --- scripts/linksys-wrt3g.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/linksys-wrt3g.php b/scripts/linksys-wrt3g.php index ae7317b..e9279e3 100755 --- a/scripts/linksys-wrt3g.php +++ b/scripts/linksys-wrt3g.php @@ -62,6 +62,15 @@ $parser->addOption( 'default' => $GLOBALS['linksys-wrt3g-tools']['password'] ) ); +$parser->addOption( + 'verbosity', + array( + 'short_name' => '-v', + 'long_name' => '--verbose', + 'description' => 'Show more details (more to see more details)', + 'action' => 'Counter', + ) +); $parser->addCommand( 'status', @@ -87,9 +96,10 @@ try { try { $router = new Wrt3g(); - $router->host = $result->options['host']; - $router->user = $result->options['user']; - $router->password = $result->options['password']; + $router->verbosity = $result->options['verbosity']; + $router->host = $result->options['host']; + $router->user = $result->options['user']; + $router->password = $result->options['password']; switch ($result->command_name) { case 'reboot': -- cgit v1.2.3