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;
fn main() {
let matches = App::new("tvrs")
.author("Thomas Forgione <thomas@forgione.fr>")
.version("0.1.0")
let matches = App::new(crate_name!())
.author(crate_authors!(" "))
.version(crate_version!())
.setting(AppSettings::ColoredHelp)
.arg(Arg::with_name("action")
.help("Action to do")
.takes_value(true)