Closed Evidlo closed 2 years ago
Hey, cheers for the issue and apologies for the delayed response
Probably best to opt for the ignore case for now as there's a decent chunk of work there to remind myself how things work and then to investigate subparsers. Not sure if https://github.com/chriskiehl/Gooey has what you need here?
Taken a look and this is the best I can do thus far:
Namespace(arg='foo', **{'==SUPPRESS==': '???'})
I like Cli2Gui because I can continue to use argparse.
Thanks for the work on this. Why not simply ignore the subparser instead of adding that ==SUPPRESS==
argument? That might be confusing to end users.
Argparse adds the ==suppress== arg. Seems to contain info on the subparser. So if you give it a description then it renders in place of none. There's an example under the tests
When
parser.add_subparsers()
is used, Cli2Gui fails with the messageIdeally Cli2Gui would support these subparsers (perhaps as additional tabs in the GUI), but at least they could be ignored and not cause an exception.