use CARGO_PKG_VERSION for version

This commit is contained in:
Dustin J. Mitchell
2020-11-29 20:23:52 -05:00
parent dd01c985ec
commit 81cee8d375
2 changed files with 3 additions and 4 deletions

View File

@@ -18,7 +18,7 @@ where
let subcommands = cmd::subcommands();
let mut app = App::new("TaskChampion")
.version("0.1")
.version(env!("CARGO_PKG_VERSION"))
.about("Personal task-tracking")
.setting(AppSettings::ColoredHelp);