diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2010-12-15 18:55:44 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2010-12-15 18:55:44 +0100 |
| commit | 8735a31fb391e9ef228f23873addb015385c77b4 (patch) | |
| tree | ac4b1848abe9ff62e8a8a299368c6785d989e65a /scripts | |
| parent | 8ef2b552858613a0f0e61e4de2b7a5f2cc26b5cc (diff) | |
| download | linksys-wrt3g-tools-8735a31fb391e9ef228f23873addb015385c77b4.tar.gz linksys-wrt3g-tools-8735a31fb391e9ef228f23873addb015385c77b4.zip | |
add some simple logging
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/linksys-wrt3g.php | 16 |
1 files changed, 13 insertions, 3 deletions
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': |
