Closed Jaymon closed 3 weeks ago
Turns out, this isn't actually a bug and merging is working correctly, previously I was compensating for a positional argument having an arg ("foos") and a dest ("foo_names") by moving the arg to the metavar and then setting the dest as the arg, so the signature switched to "foo_names", metavar="foos"
and then when the arguments were merged the "foos" metavar would override the "FOO" metavar. I think it's better to adhere to the default behavior rather than compensate for a bad signature
I would expect the merged
foo_names
to roughly look like this:But that didn't seem to be the case, I had to add
metavar
to the child one to get it to look as expected.