mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
vshCmddefCheckInternals: Remove check for "too many options"
This check was needed due to the use "unsigned long long" as bitmap which was refactored recently. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
bf3e734fac
commit
166fe3c7b5
@ -327,11 +327,6 @@ vshCmddefCheckInternals(vshControl *ctl,
|
||||
for (i = 0; cmd->opts[i].name; i++) {
|
||||
const vshCmdOptDef *opt = &cmd->opts[i];
|
||||
|
||||
if (i > 63) {
|
||||
vshError(ctl, "command '%s' has too many options", cmd->name);
|
||||
return -1; /* too many options */
|
||||
}
|
||||
|
||||
if (missingCompleters && !opt->completer) {
|
||||
switch (opt->type) {
|
||||
case VSH_OT_STRING:
|
||||
|
Loading…
Reference in New Issue
Block a user