Skip to content

Commit

Permalink
Parameterize binary version to CARGO_PKG_VERSION env var
Browse files Browse the repository at this point in the history
  • Loading branch information
ctison committed Mar 31, 2020
1 parent 55ad856 commit 2588d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use lib::base_to_base;

fn main() {
let matches = clap_app!(base =>
(version: "1.0.0")
(version: env!("CARGO_PKG_VERSION"))
(about: "Convert numbers from any base to any other base")
(@arg NUMBER: +required "Number to be converted from FROM_BASE to TO_BASE")
(@arg FROM_BASE: +required "Base in which NUMBER is converted from")
Expand Down

0 comments on commit 2588d7f

Please sign in to comment.