These are chat archives for kbknapp/clap-rs

23rd
Jun 2016
Brian Pearce
@brianp
Jun 23 2016 06:27
Sorry, Usage of the main command. I just made a small isolated test to verify the behaviour now.
Shows the difference in the App setup and the resulting output.
Brian Pearce
@brianp
Jun 23 2016 06:32
If you think it’s a real bug I can create an issue on GH. I’m going to poke around a bit and see if I can spot anything obvious
Kevin K.
@kbknapp
Jun 23 2016 12:25
Ah yeah that does appear to be a bug
Also just noticing you're calling &app.clone().get_matches()
Not that it has anything to do with this bug, but how come you're cloning?
Kevin K.
@kbknapp
Jun 23 2016 12:31
If you don't want to consume the app you can use get_matches_from_safe_borrow() which returns a Result so you'd have to call Err::exit() to get exact 1:1 functionality but it's way faster (performance wise) than cloning.
1:1 functionality being all the normal error messages.
Brian Pearce
@brianp
Jun 23 2016 15:54
Nice, yeah that was the reason I did it. It was getting consumed, and then I was trying to use it later and the value was moved.
Brian Pearce
@brianp
Jun 23 2016 16:55
Just saw you’re using clog. That’s cool, I was writing changelogs manually like a sucker lol
Kevin K.
@kbknapp
Jun 23 2016 16:57
Yeah it's awesome, I love it!
Brian Pearce
@brianp
Jun 23 2016 22:13
I’m jumping around a bit, but I dove in to #426 today. I’ll probably have some questions for tomorrow or so.
Kevin K.
@kbknapp
Jun 23 2016 22:35
Ok cool, let me know if you have any questions :+1: