Fix bug #2987 getmacs -o has some issues.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14693 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-12-21 07:40:30 +00:00
parent 783a1d100f
commit 7c0f8b3208

View File

@ -77,6 +77,15 @@ sub parse_args {
return(usage( "Invalid Argument: $ARGV[0]" ));
}
####################################
# Check -o argument
####################################
if ( exists($opt{o}) ) {
unless (exists($opt{D})){
return(usage( "The -o flag must be used with -D flag" ));
}
}
####################################
# Check argument for ping test
####################################
if ( exists($opt{D}) ) {