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
When somearg is not supplied, the parsed myargs is {'somearg': []}.
However, when you define an Arg with multiple=False:
myargs= {'somearg': Arg(allow_missing=True)}
When somearg is not supplied, the parsed myargs is {}.
I was surprised by this behavior as I assumed that when allow_missing=True and the argument is not supplied, that no parsed value would be returned for both the multiple=False and multiple=True cases.
Is this intentional? Or should no parsed value be returned in the case of Arg(allow_missing=True, multiple=True) instead of []?
The text was updated successfully, but these errors were encountered:
Currently, when you define an
Arg
such as:When
somearg
is not supplied, the parsedmyargs
is{'somearg': []}
.However, when you define an
Arg
withmultiple=False
:When
somearg
is not supplied, the parsedmyargs
is{}
.I was surprised by this behavior as I assumed that when
allow_missing=True
and the argument is not supplied, that no parsed value would be returned for both themultiple=False
andmultiple=True
cases.Is this intentional? Or should no parsed value be returned in the case of
Arg(allow_missing=True, multiple=True)
instead of[]
?The text was updated successfully, but these errors were encountered: