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

Wront Usage when running a module with python -m #2687

Open
HarexeW opened this issue Mar 2, 2024 · 1 comment
Open

Wront Usage when running a module with python -m #2687

HarexeW opened this issue Mar 2, 2024 · 1 comment

Comments

@HarexeW
Copy link

HarexeW commented Mar 2, 2024

When click is used in a module, thats is being run with python -m module, it displays a wrong usage string.

When I run python -m module --help, it will display Usage: -m [OPTIONS], instead of Usage: module [OPTIONS]

Environment:

  • Python version: 3.10.11
  • Click version: 8.1.7
@davidism
Copy link
Member

davidism commented Mar 2, 2024

Please provide a minimal reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants