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

Required options not coloured in the usage #28

Closed
hamdanal opened this issue Oct 8, 2022 · 0 comments · Fixed by #30
Closed

Required options not coloured in the usage #28

hamdanal opened this issue Oct 8, 2022 · 0 comments · Fixed by #30
Labels
bug Something isn't working

Comments

@hamdanal
Copy link
Owner

hamdanal commented Oct 8, 2022

$ cat t.py

import argparse
from rich_argparse import RichHelpFormatter
parser = argparse.ArgumentParser(formatter_class=RichHelpFormatter)
parser.add_argument("--optional")
parser.add_argument("--required", required=True)
parser.print_help()

$python -m t
Screenshot of a required option not colored in the usage

@hamdanal hamdanal added the bug Something isn't working label Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant