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

Adding app --version #72

Open
l3nz opened this issue Apr 10, 2019 · 6 comments
Open

Adding app --version #72

l3nz opened this issue Apr 10, 2019 · 6 comments

Comments

@l3nz
Copy link
Owner

l3nz commented Apr 10, 2019

It's common for terminal apps to be called like app --version to print the version. Is this possible?

Originally posted by @thiru in #35 (comment)

@l3nz l3nz changed the title It's common for terminal apps to be called like app --version to print the version. Is this possible? Adding app --version Apr 10, 2019
@l3nz
Copy link
Owner Author

l3nz commented Apr 10, 2019

@thiru Added as separate bug.

@l3nz
Copy link
Owner Author

l3nz commented Apr 10, 2019

This should only be added as "--version" (with no shortcut) to global options.

So app --version will work and print :app :version, while app cmd --version has no meaning.

@thiru
Copy link

thiru commented Apr 10, 2019

Yes that would be perfect, thank you!

@l3nz
Copy link
Owner Author

l3nz commented Nov 3, 2019

BTW, as per #69 , we could have recursive :version keys, so a subcomand could have different (sub) version.

@thiru
Copy link

thiru commented Nov 5, 2019

Sweet thanks!

Versions on sub-commands seem niche. I personally haven't found a need for them but still nice to have the option.

@abhi18av
Copy link

Hello @l3nz ,

Could you please share a working example on how exactly, this could be achieved with cli-matic "0.4.3"] ?

I have been trying to get the same use case working app --version without success 😞 .

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

3 participants