Merged revisions 3653 via svnmerge from

https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3653 | bvassche | 2011-07-03 05:36:33 -0400 (Sun, 03 Jul 2011) | 1 line
  
  scstadmin: Add command-line options -h and --help
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3665 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2011-07-07 21:13:07 +00:00
parent c233f5a64f
commit 7117946c2a
+9 -1
View File
@@ -13,6 +13,8 @@ sub usage
$Version
Usage:
-h, -help, --help : Show this information.
General Operations
-config <config> : Configure SCST given the specified <file>.
-check_config <file> : Checks the saved configuration <file>.
@@ -291,6 +293,7 @@ sub getArgs {
my $to;
my $device;
my $show_usage;
my $nonkey;
my $force;
@@ -364,10 +367,15 @@ sub getArgs {
'to=s' => \$to,
'device=s' => \$device,
'h' => \$show_usage,
'help' => \$show_usage,
'nonkey' => \$nonkey,
'noprompt' => \$_NOPROMPT_,
'force' => \$force,
'debug' => \$_DEBUG_)) {
'debug' => \$_DEBUG_) ||
defined($show_usage))
{
usage();
}