Add check for # of args.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@311 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
26459260fe
commit
28a604a795
@ -194,6 +194,10 @@ sub processArgs
|
||||
my $gotattrs = 0;
|
||||
|
||||
@ARGV = @{$::args};
|
||||
|
||||
if (scalar(@ARGV) <= 0) {
|
||||
return 2;
|
||||
}
|
||||
|
||||
# parse the options - include any option from all 4 cmds
|
||||
if (
|
||||
|
Loading…
Reference in New Issue
Block a user