Skip to content

How to set the prog name of a group? #2643

Closed Answered by anemele
anemele asked this question in Q&A
Discussion options

You must be logged in to vote

read the source, it is easy.

calling cli is calling click/core.py:BaseCommand:main, just pass __package__ to cli

if __name__ == '__main__':
    cli(prog_name=__package__)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by anemele
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #2642 on December 02, 2023 04:59.