Skip to content

App::get_version? #1912

Answered by CreepySkeleton
shze asked this question in Q&A
May 6, 2020 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

In clap 2.33 Arg.verison field is #[hidden] pub, you can use it directly. Hacky, but I don't think it will ever change.

If you want to see it in 3.0, feel free to submit a PR adding Arg::get_version getter.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@CreepySkeleton
Comment options

@CreepySkeleton
Comment options

@shze
Comment options

@CreepySkeleton
Comment options

@shze
Comment options

Answer selected by shze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants