-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Parsing nested argument of type list fails with cli_parse_args
and alias_generator
#398
Comments
@kschwab please take look when you have time |
@hramezani this is an issue in the |
Does it look like an easy fix? If you give me some pointers I can try to create a PR |
Thanks @kschwab for the investigation. @andlogreg I think I need to investigate and I don't think it is an easy fix. probably the change it not too much but finding the place of change takes time. I will check it later. |
@andlogreg |
@hramezani thanks for the PR! Unfortunately, I tried the example above and I still get the same error. Did you try it on your end? |
Actually, please ignore this comment. It was something with my environment. I can confirm it is now working :) |
Thanks @andlogreg for confirming. it will be included in the next release! |
Versions:
my_config.py:
✅ Help:
✅ Running without args ok:
# python my_config.py sub_model=SubModel(sub_list=[], sub_int=0) top_list=[] top_int=0
✅ Setting top args ok:
✅ Setting submodel int arg ok:
# python my_config.py --sub__model.sub__int=34 sub_model=SubModel(sub_list=[], sub_int=34) top_list=[] top_int=0
❌Setting submodel list arg fails:
Comments
Similar behaviour happens when argument is of type dict. It seems alias generation conflicts with parsing complex types?
The text was updated successfully, but these errors were encountered: