Skip to content

Commit

Permalink
Fix ArgumentParser description
Browse files Browse the repository at this point in the history
  • Loading branch information
mauvilsa committed Jan 30, 2025
1 parent 4aa4e69 commit 0b69c0b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions twine/commands/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,19 @@ def check(
def main(args: List[str]) -> bool:
"""Execute the ``check`` command.
This currently only validates ``long_description``, but more checks could be
added.
Note: check is not intended to catch all reasons why an upload to PyPI might fail.
:param args:
The command-line arguments.
:return:
The exit status of the ``check`` command.
"""
parser = argparse.ArgumentParser(prog="twine check")
description = """
This currently only validates ``long_description``, but more checks could be
added.
Note: check is not intended to catch all reasons why an upload to PyPI might fail.
"""
parser = argparse.ArgumentParser(prog="twine check", description=description)
parser.add_argument(
"dists",
nargs="+",
Expand Down

0 comments on commit 0b69c0b

Please sign in to comment.