diff options
| author | Emīls Piņķis <pinkisemils@gmail.com> | 2018-03-23 12:33:43 +0000 |
|---|---|---|
| committer | Emīls Piņķis <pinkisemils@gmail.com> | 2018-03-26 15:24:43 +0100 |
| commit | ae736aea4f1add9fa13bd010d82f5cf0fe17ca74 (patch) | |
| tree | 2f4095fa17a7052318a5d7bf2c67f7987172219c /mullvad-daemon/src/cli.rs | |
| parent | 89231c92ec1f9c8fcfb7b6731fbcf046f8d2278c (diff) | |
| download | mullvadvpn-ae736aea4f1add9fa13bd010d82f5cf0fe17ca74.tar.xz mullvadvpn-ae736aea4f1add9fa13bd010d82f5cf0fe17ca74.zip | |
Replace include_str!() occurences with version::current() in mullvad-daemon
Diffstat (limited to 'mullvad-daemon/src/cli.rs')
| -rw-r--r-- | mullvad-daemon/src/cli.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/mullvad-daemon/src/cli.rs b/mullvad-daemon/src/cli.rs index 4c0779bf97..8867e42ca2 100644 --- a/mullvad-daemon/src/cli.rs +++ b/mullvad-daemon/src/cli.rs @@ -3,6 +3,8 @@ use log; use std::path::PathBuf; +use version; + pub struct Config { pub log_level: log::LevelFilter, pub log_file: Option<PathBuf>, @@ -36,10 +38,7 @@ pub fn get_config() -> Config { fn create_app() -> App<'static, 'static> { App::new(crate_name!()) - .version(include_str!(concat!( - env!("OUT_DIR"), - "/git-commit-desc.txt" - ))) + .version(version::current()) .author(crate_authors!()) .about(crate_description!()) .arg( |
