Open CM-BF opened 1 year ago
Hi @CM-BF,
Thank you for raising this issue! We agree that this would be a really cool feature and would be extremely useful. However, in our understanding, creating an interface like this with argument names such as args.model.model_name
would require fundamentally changing how arguments are parsed from the command line. Since we intended Tap
to be a typed wrapper of Python's argparse
, we believe that this feature is out of the scope for this project. However, we really appreciate your idea, and we hope that you or someone else might be able to fork the project and implement it there!
Best, Jesse and Kyle
Thank you for your great repo!
I've used this package in nearly all of my projects. Gradually, I found that the most urgent and useful feature will be a nested argument parser. That is:
I don't know whether there is a workaround. Or do you have any plans to add this feature?:smile:
Currently, my workaround is similar to this:
Therefore, I can use something like
args.model.model_name
in my code with autocomplete. But I cannot parse them in a similar way from the argv, e.g.,--model.model_name XXX
.