Skip to content
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

ENH: clearly highlight user-defined commands as such #183

Open
neutrinoceros opened this issue Dec 9, 2022 · 2 comments
Open

ENH: clearly highlight user-defined commands as such #183

neutrinoceros opened this issue Dec 9, 2022 · 2 comments

Comments

@neutrinoceros
Copy link
Owner

idfx --help

shouldn't mingle builtin commands and user defined ones

@neutrinoceros neutrinoceros added this to the 1.0.0 milestone Dec 9, 2022
@neutrinoceros
Copy link
Owner Author

it seems that argparse doesn't allow defining multiple subparsers, which means that currently the only way I see to implement the desired behaviour is to use https://github.com/ewels/rich-click
... but there's no way I'm switching to click just for that.

Maybe I could subclass argparse.HelpFormatter 🤔

@neutrinoceros neutrinoceros removed this from the 1.0.0 milestone Dec 9, 2022
@neutrinoceros
Copy link
Owner Author

neutrinoceros commented Dec 10, 2022

argument groups (https://docs.python.org/3/library/argparse.html#argument-groups) also seem close to what I want but it doesn't seem to combine with sub parsers, that I already use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant