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
Currently it's very inconvenient to make an option in the form of -o output required. It is not checked if it does not present, if you get("-o") you get a logic error, which requires lots of post processing. There should be a way to declare that this argument must present. If not presents, exception; if only -o presents, status quo (a different exception).
Also, the current situation makes -o equivalent to not presenting if there is a default_value. I think it's not a very good interface. I tried to simulate a "all or nothing" default value with .implicit_value(x).nargs(1), but no luck.
The text was updated successfully, but these errors were encountered:
Currently it's very inconvenient to make an option in the form of
-o output
required. It is not checked if it does not present, if youget("-o")
you get a logic error, which requires lots of post processing. There should be a way to declare that this argument must present. If not presents, exception; if only-o
presents, status quo (a different exception).Also, the current situation makes
-o
equivalent to not presenting if there is adefault_value
. I think it's not a very good interface. I tried to simulate a "all or nothing" default value with.implicit_value(x).nargs(1)
, but no luck.The text was updated successfully, but these errors were encountered: