Skip to content

How to add version option of click cli #45

@rajnathsah

Description

@rajnathsah

I have created a cli using click using click-shell but struggling to add version option.

my command is testcmd and i have added version in setup.py. Importing package on python console, i can see version like

testcmd.version

But i want to have the option of printing version on logging to cmd also along with option like below

testcmd --version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions