From 6b7098dfde70323d9cfac560d7425fc1de476b7d Mon Sep 17 00:00:00 2001 From: zhanx Date: Thu, 6 Aug 2009 11:22:29 +0000 Subject: [PATCH] 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 --- perl-xCAT/xCAT/PPCconn.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/perl-xCAT/xCAT/PPCconn.pm b/perl-xCAT/xCAT/PPCconn.pm index 9219e858b..99a1f94bf 100644 --- a/perl-xCAT/xCAT/PPCconn.pm +++ b/perl-xCAT/xCAT/PPCconn.pm @@ -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