hamdanal / rich-argparse

A rich help formatter for argparse
https://pypi.org/project/rich-argparse/
MIT License
129 stars 11 forks source link

Do not print help output #19

Closed hamdanal closed 2 years ago

hamdanal commented 2 years ago

Return help output as a string instead of printing it in the formatter.

Currently this does not work:

s = parser.format_help()  # this line prints on the screen, it shouldn't
print(s.upper())  # prints empty string