Use crate_authors macro
This commit is contained in:
parent
1106eba217
commit
ee33f214bc
|
@ -12,18 +12,17 @@ use std::collections::BTreeMap;
|
||||||
use std::fs;
|
use std::fs;
|
||||||
use std::process;
|
use std::process;
|
||||||
|
|
||||||
use clap::{crate_version, App, Arg};
|
use clap::{crate_authors, crate_version, App, Arg};
|
||||||
use colored::Colorize;
|
use colored::Colorize;
|
||||||
|
|
||||||
use crate::parsers::slice;
|
use crate::parsers::slice;
|
||||||
|
|
||||||
const AUTHOR: &str = "Daniele Tricoli <eriol@mornie.org>";
|
|
||||||
const ERROR_PARSING: &str = "An error occurred while parsing:";
|
const ERROR_PARSING: &str = "An error occurred while parsing:";
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let matches = App::new("conf-form")
|
let matches = App::new("conf-form")
|
||||||
.version(crate_version!())
|
.version(crate_version!())
|
||||||
.author(AUTHOR)
|
.author(crate_authors!())
|
||||||
.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