Browse Source

Use the crate version

Samuel W. Flint 3 years ago
parent
commit
c95e1e2c23
2 changed files with 1 additions and 2 deletions
  1. 0 1
      src/cli.yml
  2. 1 1
      src/main.rs

+ 0 - 1
src/cli.yml

@@ -1,5 +1,4 @@
 name: sync-it
-version: "0.1.0"
 author: Samuel W. Flint <swflint@flintfam.org>
 about: Synchronize directories flexibly
 settings:

+ 1 - 1
src/main.rs

@@ -22,7 +22,7 @@ use crate::lib::{
 
 fn main() {
     let yaml = load_yaml!("cli.yml");
-    let matches = App::from_yaml(yaml).get_matches();
+    let matches = App::from_yaml(yaml).version(crate_version!()).get_matches();
 
     let config_file = find_config_file(matches.value_of("config"));
     let mut configuration: Config = read_configuration_file(&config_file);