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;
|
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)
|
||||||
|
|
Loading…
Reference in New Issue