Skip to content

Commit

Permalink
Set prog="porcupine" for argparse (#1348)
Browse files Browse the repository at this point in the history
  • Loading branch information
Akuli authored Jul 7, 2023
1 parent 4cd7b3c commit 0ed9dc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions porcupine/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def main() -> None:
#
# Between those steps, plugins get a chance to add more command-line options.
parser = argparse.ArgumentParser(
prog="porcupine",
epilog=_EPILOG,
formatter_class=argparse.RawDescriptionHelpFormatter,
add_help=False, # help in step 1 wouldn't show options added by plugins
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,4 @@ dependencies = [

[project.scripts]
porcu = "porcupine.__main__:main"
porcupine = "porcupine.__main__:main"

0 comments on commit 0ed9dc7

Please sign in to comment.