diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index 88d3f3659..0c3870922 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -13,6 +13,8 @@ sub usage $Version Usage: + -h, -help, --help : Show this information. + General Operations -config : Configure SCST given the specified . -check_config : Checks the saved configuration . @@ -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(); }