[padb] r450 committed - Fix help message for showing current settings....
padb at googlecode.com
padb at googlecode.com
Tue Jul 2 21:44:00 BST 2013
Revision: 450
Author: apittman at gmail.com
Date: Tue Jul 2 13:43:39 2013
Log: Fix help message for showing current settings.
This patch comes from Jeff Squyres <jsquyres at cisco.com>
http://code.google.com/p/padb/source/detail?r=450
Modified:
/trunk/src/padb
=======================================
--- /trunk/src/padb Thu Dec 15 12:39:20 2011
+++ /trunk/src/padb Tue Jul 2 13:43:39 2013
@@ -792,7 +792,7 @@
-O [opt1=val,<opt2=val>] Set internal config options for padb, advanced
use only.
Options in this version (these are liable to change)
- Use -Ohelp for showing current settings
+ Use -Ohelp=1 for showing current settings
General options:
verbose Set verbosity level.
@@ -5851,7 +5851,10 @@
$key =~ s{-}{_}gx;
- if ( not exists $conf{$key}
+ if ( $key eq "help" ) {
+ config_help($mode);
+ exit(0);
+ } elsif ( not exists $conf{$key}
and not exists $conf{mode_options_reverse}{$key} )
{
print "Error, unknown config option '$name'\n";
More information about the padb-devel
mailing list