cmd: fix arglist count not including multiple occurrences of the same non-arg options
This commit is contained in:
@@ -921,6 +921,10 @@ bool b_arglist_iterator_next(struct b_arglist_iterator *it)
|
|||||||
}
|
}
|
||||||
|
|
||||||
b_btree_iterator_begin(&opt->opt_values, &it->_arg_it);
|
b_btree_iterator_begin(&opt->opt_values, &it->_arg_it);
|
||||||
|
|
||||||
|
if (it->_arg_filter == B_COMMAND_INVALID_ID) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user