-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple independent subcommands #61
Comments
Hi @Linusnie! I appreciate the detailed issue. Unfortunately, what you described is the best that we can do right now. I think #60 (comment) addresses the same problem:
If you really want this behavior, I guess you could annotate the first field with |
@brentyi I see, thank you for the explanation! That's unfortunate but I'll try to reduce it to just one subcommand somehow for now then |
hi, first off thanks for making this great library! I've run into the following issue: I'd like to have a setting structure with two subcommands, each with separate settings and defaults:
I'd like to be able to set the value for
config.b
while leavingconfig.a
as its default. However if I runpython tyro_test.py b:b2
I get the following error:and the only way(?) to set
config.b
is to setconfig.a
first withpython tyro_test.py a:a1 b:b2
. Is there a way to setconfig.b
via the command line without having to setconfig.a
?The text was updated successfully, but these errors were encountered: