Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change the application's name #82

Closed
tarnfeld opened this issue May 13, 2014 · 2 comments
Closed

Add ability to change the application's name #82

tarnfeld opened this issue May 13, 2014 · 2 comments

Comments

@tarnfeld
Copy link

At present (from what I can tell) the name of the click application is figured out automatically, for instance...

$ python app.py
Usage: app.py [OPTIONS] COMMAND [ARGS]...

If the application is a module, and the click application is invoked via __main__.py the help text is a little unhelpful...

$ python -m app
Usage: __main__.py [OPTIONS] COMMAND [ARGS]...

Is there a way of changing this, and if not could someone point me in the direction for a pull request?

@julen
Copy link
Contributor

julen commented May 13, 2014

@tarnfeld
Copy link
Author

Ah, thanks. I was struggling to find that. Passing the prog_name argument does the trick!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants