Colored help

This commit is contained in:
Thomas Forgione 2019-04-30 16:10:33 +02:00
parent 150588628e
commit 29329db6fb
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 8 additions and 4 deletions

View File

@ -1,11 +1,15 @@
use clap::{Arg, App}; #[macro_use]
extern crate clap;
use clap::{Arg, App, AppSettings};
use tvrs::MultiScreen; use tvrs::MultiScreen;
fn main() { fn main() {
let matches = App::new("tvrs") let matches = App::new(crate_name!())
.author("Thomas Forgione <thomas@forgione.fr>") .author(crate_authors!(" "))
.version("0.1.0") .version(crate_version!())
.setting(AppSettings::ColoredHelp)
.arg(Arg::with_name("action") .arg(Arg::with_name("action")
.help("Action to do") .help("Action to do")
.takes_value(true) .takes_value(true)