click-shell
click-shell copied to clipboard
How to add version option of click cli
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
There is option in click to add version option but when added with click-shell, it does not work.