Move version and author to const variables
This commit is contained in:
parent
ab07061f14
commit
1d41ff4836
|
@ -19,10 +19,13 @@ use clap::{App, Arg};
|
||||||
|
|
||||||
use crate::parsers::slice;
|
use crate::parsers::slice;
|
||||||
|
|
||||||
|
const VERSION: &str = "0.1.0";
|
||||||
|
const AUTHOR: &str = "Daniele Tricoli <eriol@mornie.org>";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = App::new("conf-form")
|
let matches = App::new("conf-form")
|
||||||
.version("0.1.0")
|
.version(VERSION)
|
||||||
.author("Daniele Tricoli <eriol@mornie.org>")
|
.author(AUTHOR)
|
||||||
.about("Fill configuration files with values from profiles")
|
.about("Fill configuration files with values from profiles")
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("config")
|
Arg::with_name("config")
|
||||||
|
|
Loading…
Reference in New Issue