These are chat archives for kbknapp/clap-rs

18th
Feb 2018
Kevin K.
@kbknapp
Feb 18 2018 04:48
Sounds good, sent you a PM, we should be able to link up tomorrow
matrixbot
@matrixbot
Feb 18 2018 18:16
@hpd:hpdeifel.de Hi! I was wondering: What's the reason for ArgMatches::subcommand() to return (&str, Option<&ArgMatches<'a>>) instead of Option<(&str, &ArgMatches<'a>>)?
Kevin K.
@kbknapp
Feb 18 2018 18:31
At the time I made that, there were circumstances where there would be no matches, however since then it's changed. But without going to v3 I coudn't change the signature. That's near the top of my list of things that I'm changing in v3
I guess technically there are still times you could have no matches with ("", None) however, the signature is still wrong that's not an idiomatic way to do things nowadays
matrixbot
@matrixbot
Feb 18 2018 18:46
@hpd:hpdeifel.de Alright, I thought I was missing something. Thanks for the clarification!
Kevin K.
@kbknapp
Feb 18 2018 18:47
No problem!