fix for bug 3050: -t and -a could not be used together

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14715 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2012-12-27 05:50:35 +00:00
parent 6ac917a748
commit 1521e5834b

View File

@ -311,6 +311,14 @@ sub processArgs
return 2;
}
# -a and -t cannot be used together
if ($::opt_a && $::opt_t) {
my $rsp;
$rsp->{data}->[0] = "The flags \'-a'\ and \'-t'\ cannot be used together.";
xCAT::MsgUtils->message("E", $rsp, $::callback);
return 2;
}
# -l and -s cannot be used together
if ($::opt_l && $::opt_s) {
my $rsp;