fix for bug 3308305: check the unnecessary arguments

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9809 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
ligc 2011-06-16 00:38:49 +00:00
parent 52f149e76f
commit 38e1f1d9ac

View File

@ -64,6 +64,13 @@ sub process_request {
"verbose|V" => \$verbose
);
if ( defined( $ARGV[0] )) {
my $rsp = {};
$rsp->{data}->[0] = "Invalid Argument: $ARGV[0]";
$rsp->{data}->[1] = $usage;
xCAT::MsgUtils->message("D", $rsp, $callback);
return 0;
}
if($version) {
my $version = xCAT::Utils->Version();
my $rsp = {};