Closed vwxyzjn closed 1 year ago
Thanks for pointing this out @vwxyzjn! This isn't currently possible but I gave a stab at support for it in #47, do you mind checking if it makes sense to you?
Actually, I see that you need not just action="append"
as in the PR, but specifically also nargs="+"
. Having these in unison isn't done yet, but I think isn't far off... probably we can express this with a Tuple[Tuple[str, ...], ...]
annotation. Will revisit.
edit: actually, just did it! in the latest version of the PR annotations like UseAppendAction[Tuple[Tuple[str, ...], ...]]
and UseAppendAction[List[List[str]]]
should result in the behavior you're describing.
Hello, this is a really cool project. I have wanted to use it to replace
argparse
in https://github.com/openrlbenchmark/openrlbenchmark.There is a small issue though, currently we have snippet that looks like
However, after multiple attempts, I wasn't sure how to do this
nargs="+", action="append"
withtyro
. Is it even possible?Thanks.