ENH: add error checking for option commands with too many arguments
This commit is contained in:
parent
fc933df1fc
commit
433e1128ab
|
@ -19,7 +19,7 @@
|
|||
// cmOptionCommand
|
||||
bool cmOptionCommand::InitialPass(std::vector<std::string> const& args)
|
||||
{
|
||||
if(args.size() < 2)
|
||||
if(args.size() < 2 || args.size() > 3)
|
||||
{
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue