Message378526
In argparse, I've always wanted a way to make colored help text like those of poetry and pipenv. But argparse's show help isn't well documented (Therefore, I can't find a way to completely modify the help text), and the metavar arg isn't really helpful. I want to do something like this:
>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument("foo", help="To foo a bar", display="FOO!!!!")
>>> parser.print_help()
usage: main.py [-h] foo
positional arguments:
FOO!!!! To foo a bar
optional arguments:
-h, --help show this help message and exit
>>>
That way, I can colorize the help output. |
|
Date |
User |
Action |
Args |
2020-10-12 21:18:16 | ThatXliner | set | recipients:
+ ThatXliner |
2020-10-12 21:18:16 | ThatXliner | set | messageid: <1602537496.16.0.894148688163.issue42023@roundup.psfhosted.org> |
2020-10-12 21:18:16 | ThatXliner | link | issue42023 messages |
2020-10-12 21:18:16 | ThatXliner | create | |
|