From be6ee76486195371047dec8fa481c07b5c5221cf Mon Sep 17 00:00:00 2001 From: ConnorSkees <39542938+ConnorSkees@users.noreply.github.com> Date: Fri, 1 May 2020 16:06:22 -0400 Subject: [PATCH] -I takes 1 arg and --precision takes a value --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 9a2034d..4046e95 100644 --- a/src/main.rs +++ b/src/main.rs @@ -43,7 +43,8 @@ fn main() -> std::io::Result<()> { .long("load-path") .help("A path to use when resolving imports. May be passed multiple times.") .multiple(true) - .takes_value(true), + .takes_value(true) + .number_of_values(1), ) .arg( Arg::with_name("STYLE") @@ -152,6 +153,7 @@ fn main() -> std::io::Result<()> { Arg::with_name("PRECISION") .long("precision") .hidden(true) + .takes_value(true) ) .get_matches();