add {h} to show the usage()
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3427 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
02c8806078
commit
3a7a2a0fc4
@ -64,7 +64,7 @@ sub parse_args {
|
||||
# Process command-line arguments
|
||||
#############################################
|
||||
if ( !defined( $args )) {
|
||||
return(usage( "No command specified" ));
|
||||
return(usage( "No arguments specified" ));
|
||||
}
|
||||
|
||||
#############################################
|
||||
@ -86,7 +86,11 @@ sub parse_args {
|
||||
if ( exists( $opt{v} )) {
|
||||
return( \$::VERSION );
|
||||
}
|
||||
|
||||
|
||||
if ( exists( $opt{h}) || $opt{help}) {
|
||||
return( usage());
|
||||
}
|
||||
|
||||
#################################
|
||||
#Option --activate not valid with --commit or --recover
|
||||
#################################
|
||||
|
Loading…
Reference in New Issue
Block a user