From ef4a3e689b879010c039040f6240cee181ca760b Mon Sep 17 00:00:00 2001 From: Magnus Hoff Date: Mon, 30 Oct 2017 11:33:05 +0100 Subject: [PATCH] More properly fix --trust-identity command line option --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 49744c4..c6d99d6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -57,7 +57,7 @@ fn args<'a>() -> clap::ArgMatches<'a> { .help("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 sets this header.") - .long("trust_identity")) + .long("trust-identity")) .get_matches() } @@ -70,7 +70,7 @@ fn core_main() -> Result<(), Box> { .map(|p| p.parse().expect("Guaranteed by validator")) .unwrap_or(8080); - let trust_identity = args.is_present("trust_identity"); + let trust_identity = args.is_present("trust-identity"); let db_pool = db::create_pool(db_file)?; let cpu_pool = futures_cpupool::CpuPool::new_num_cpus();