Colored help
This commit is contained in:
parent
150588628e
commit
29329db6fb
12
src/tv.rs
12
src/tv.rs
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue