1
0
Fork 0

Move version and author to const variables

main
Daniele Tricoli 4 years ago
parent ab07061f14
commit 1d41ff4836
  1. 7
      src/main.rs

@ -19,10 +19,13 @@ use clap::{App, Arg};
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("0.1.0")
.author("Daniele Tricoli <eriol@mornie.org>")
.version(VERSION)
.author(AUTHOR)
.about("Fill configuration files with values from profiles")
.arg(
Arg::with_name("config")

Loading…
Cancel
Save