fix bug:2832766 mkhwconn, rmhwconn, not providing proper usage message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3958 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhanx 2009-08-06 11:22:29 +00:00
parent 5559e71b72
commit 6b7098dfde

View File

@ -56,6 +56,7 @@ sub mkhwconn_parse_args
if ( !GetOptions( \%opt, qw(V|verbose h|help t p=s P=s) )) {
return( usage() );
}
return usage() if ( exists $opt{h});
if ( exists $opt{t} and exists $opt{p})
{
@ -285,6 +286,7 @@ sub rmhwconn_parse_args
if ( !GetOptions( \%opt, qw(V|verbose h|help) )) {
return( usage() );
}
return usage() if ( exists $opt{h});
#############################################
# Process command-line arguments