Prefer dashes in command line options

This commit is contained in:
Magnus Hoff 2017-10-30 11:04:01 +01:00
parent 5b37a41632
commit 245ecaa969
2 changed files with 2 additions and 2 deletions

View file

@ -44,7 +44,7 @@ Command line arguments
FLAGS: FLAGS:
-h, --help Prints help information -h, --help Prints help information
--trust_identity Trust the value in the X-Identity header to be an authenticated username. --trust-identity Trust the value in the X-Identity header to be an authenticated username.
This only makes sense when Sausagewiki runs behind a reverse proxy which This only makes sense when Sausagewiki runs behind a reverse proxy which
sets this header. sets this header.
-V, --version Prints version information -V, --version Prints version information

View file

@ -53,7 +53,7 @@ fn args<'a>() -> clap::ArgMatches<'a> {
Err(_) => Err("Must be an integer in the range [0, 65535]".to_owned()) Err(_) => Err("Must be an integer in the range [0, 65535]".to_owned())
}) })
.takes_value(true)) .takes_value(true))
.arg(Arg::with_name("trust_identity") .arg(Arg::with_name("trust-identity")
.help("Trust the value in the X-Identity header to be an \ .help("Trust the value in the X-Identity header to be an \
authenticated username. This only makes sense when Sausagewiki \ authenticated username. This only makes sense when Sausagewiki \
runs behind a reverse proxy which sets this header.") runs behind a reverse proxy which sets this header.")