Skip to content

Commit

Permalink
Use module docstring in CLI help text (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Dec 16, 2024
1 parent cad1df4 commit 5f4ce00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tinytext/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@


def main() -> None:
parser = argparse.ArgumentParser()
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
)
parser.add_argument("text", help="Text to tinify")
parser.add_argument(
"-V", "--version", action="version", version=f"%(prog)s {__version__}"
Expand Down

0 comments on commit 5f4ce00

Please sign in to comment.