You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Also ALLOPTSMANDATORY seems like a misnomer, because if I want an optionparser that just gives me arguments, and needs no options (but gives me the logger and stuff) I need to do
the second remark is that bla x y gives an error because args is not empty, and when setting ALLOPTSMANDATORY=False it does not.
so making opts non mandatory makes args possible, which is not really what you would expect.
and mandatory options are a contradiction, either they are optional, or they are mandatory :p
https://github.com/hpcugent/vsc-base/blob/master/lib/vsc/utils/generaloption.py#L974
shouldn't this be >0 ?
because now when using simple_option
bla x
gives me an optionparser.args == ['x']
but
bla x y
gives me the error in the next line.
The text was updated successfully, but these errors were encountered: