Fix bug #2987 getmacs -o has some issues.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@14700 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-12-21 08:36:17 +00:00
parent f0e1f5fd21
commit c07e084196

View File

@ -74,6 +74,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}) ) {