These are chat archives for kbknapp/clap-rs

12th
Jul 2018
Laurențiu Nicola
@lnicola
Jul 12 2018 05:59
how are you running it?
matrixbot
@matrixbot
Jul 12 2018 17:20
Refpga There is a subcommand which has this argument. I removed the subcommand & it's working now, I realized I did not need that subcommand anyway.
Here's how I was running it though, $ appname subcommand -i bin/path/
Kevin K.
@kbknapp
Jul 12 2018 17:29
If it's required(true) and there are no other arguments that conflict with it, it's safe to do matches.value_of("binpath").unwrap()
matrixbot
@matrixbot
Jul 12 2018 17:32

Refpga > <@gitter_kbknapp:matrix.org> If it's required(true) and there are no other arguments that conflict with it, it's safe to do matches.value_of("binpath").unwrap()

Yes, I have since changed that snippet. Though I used expect.

Kevin K.
@kbknapp
Jul 12 2018 17:33
Yep that works too :+1: