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

Allow version to be propagated globally through subcommands #157

Closed
kbknapp opened this issue Jul 15, 2015 · 0 comments
Closed

Allow version to be propagated globally through subcommands #157

kbknapp opened this issue Jul 15, 2015 · 0 comments

Comments

@kbknapp
Copy link
Member

kbknapp commented Jul 15, 2015

Another issue pointed out by SShrike, so more thanks to him! This also goes along nicely with #156 :)

If one does wish to have versions available to all subcommands, but wishes to use the same version throughout, it's tiresome to repeat App::version(&str) for all of them, especially if you have a lot or non-standard versions.

This issue requests an App::global_version(bool) which will propagate the App::version value down through the command hierarchy.

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

1 participant