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

Show version number in CLI #38

Closed
tonybaloney opened this issue Dec 19, 2018 · 4 comments
Closed

Show version number in CLI #38

tonybaloney opened this issue Dec 19, 2018 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers up-for-grabs
Milestone

Comments

@tonybaloney
Copy link
Owner

--help command should show wily.__version__ in heading.

Also a --version/-V flag should be available in the CLI

@tonybaloney tonybaloney added enhancement New feature or request good first issue Good for newcomers up-for-grabs labels Dec 19, 2018
@DahlitzFlorian
Copy link
Collaborator

I'm working on this issue as my first contribution to wily and as my first contribution to any open source project.

@tonybaloney
Copy link
Owner Author

It’s all yours! If you have any questions or want any help on git flow let me know.

@DahlitzFlorian
Copy link
Collaborator

Thanks! I already added the --version/-V flag, but I'm still struggling with the --help heading as it's auto-generated and it seems that no way to inject it properly exists. Let's see if I can fix it in the next days.

@tonybaloney
Copy link
Owner Author

It uses the __doc__ class-attribute, which is the docstring of the function. You could inject it into that string.
https://github.com/pallets/click/blob/56314dbdc6075307d2104b2ae640186acb81a8ef/click/decorators.py#L116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers up-for-grabs
Projects
None yet
Development

No branches or pull requests

2 participants