1
0
Fork 0

Use crate_version!() macro to get version

This commit is contained in:
Daniele Tricoli 2018-11-21 01:29:00 +01:00
parent 64e7492921
commit fdee226b25

View file

@ -5,8 +5,9 @@
#[macro_use]
extern crate pest_derive;
#[macro_use]
extern crate clap;
extern crate colored;
extern crate indexmap;
extern crate pest;
@ -22,12 +23,11 @@ use colored::Colorize;
use crate::parsers::slice;
const VERSION: &str = "0.1.0";
const AUTHOR: &str = "Daniele Tricoli <eriol@mornie.org>";
fn main() {
let matches = App::new("conf-form")
.version(VERSION)
.version(crate_version!())
.author(AUTHOR)
.about("Fill configuration files with values from profiles")
.arg(