Require argument, else display help
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
parent
8aedc96c67
commit
8d25715e55
1 changed files with 2 additions and 1 deletions
|
@ -1,11 +1,12 @@
|
|||
extern crate clap;
|
||||
use clap::{App, Arg};
|
||||
use clap::{App, AppSettings, Arg};
|
||||
|
||||
pub fn get_args() -> clap::ArgMatches<'static> {
|
||||
App::new("LiQuid Screen Dim")
|
||||
.version(env!("CARGO_PKG_VERSION"))
|
||||
.author(env!("CARGO_PKG_AUTHORS"))
|
||||
.about(env!("CARGO_PKG_DESCRIPTION"))
|
||||
.setting(AppSettings::ArgRequiredElseHelp)
|
||||
.arg(
|
||||
Arg::with_name("dim")
|
||||
.long("dim")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue