Fixed a bug with interactive_t's arg validation
This commit is contained in:
parent
c6d2420d09
commit
018c812fda
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ void interactive_t::verify_arguments() const
|
||||||
"Expected " << label << " for argument " << offset
|
"Expected " << label << " for argument " << offset
|
||||||
<< ", but received " << vlabel);
|
<< ", but received " << vlabel);
|
||||||
}
|
}
|
||||||
else if (! optional && ! next_arg) {
|
else if (*p && ! optional && ! next_arg) {
|
||||||
throw_(std::logic_error, "Too few arguments to function");
|
throw_(std::logic_error, "Too few arguments to function");
|
||||||
}
|
}
|
||||||
else if (! *p && next_arg) {
|
else if (! *p && next_arg) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue