From 6630edfebf2044fc4550520dc856543ffd46a41d Mon Sep 17 00:00:00 2001 From: VassiliDev Date: Tue, 17 Aug 2021 06:34:38 -0400 Subject: [PATCH] Added short form arg and fixed feault value --- src/main.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f4a93f3..bc809a8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -177,8 +177,9 @@ fn main() -> Result<(), String> { .help("Set a rotation threshold between 0 and 1") .takes_value(true), Arg::with_name("normalization-factor") - .default_value("6") + .default_value("1e6") .long("normalization-factor") + .short("n") .value_name("NORMALIZATION_FACTOR") .help("Set factor for sensor value normalization") .takes_value(true),