scstadmin: Add information about -list_grp_attr in the scstadmin help text. Also, complain if no group name has been specified for -list_grp_attr.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3678 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-07-17 13:54:28 +00:00
parent 12be13f881
commit f3b7c16dff
+6 -2
View File
@@ -38,6 +38,9 @@ Query Operations
-list_drv_attr <driver> : List all attributes for a given driver.
-list_tgt_attr <target> : List all attributes for a given driver/target.
-driver <driver>
-list_grp_attr <group> : List all attributes for a given group.
-driver <driver>
-target <target>
-list_lun_attr <lun> : List all attributes for a driver/target/lun.
-driver <driver>
-target <target>
@@ -418,8 +421,9 @@ sub getArgs {
usage();
}
if (defined($listGroupAttr) && (($driver eq '') || ($target eq ''))) {
print "Please specify -driver and -target with -list_grp_attr.\n";
if (defined($listGroupAttr) && (($driver eq '') || ($target eq '') ||
($listGroupAttr eq ''))) {
print "Please specify -driver, -target and group with -list_grp_attr.\n";
usage();
}