These are chat archives for kbknapp/clap-rs

6th
Jun 2018
Stefan Puhlmann
@hstefan
Jun 06 2018 22:43
@kbknapp had some progress on the bug today, but I also broke leading_hyphen_fail so PR will take a bit longer
hstefan @hstefan is also figuring out basic rust sytnax as he goes
Kevin K.
@kbknapp
Jun 06 2018 22:56
No worries! If you want to push the code you have and make a PR we can walk through the changes you're making and make some suggestions
The code doesn't have to be completed to start the PR 😉
Stefan Puhlmann
@hstefan
Jun 06 2018 22:58
yeah, that could work too
Kevin K.
@kbknapp
Jun 06 2018 23:00
I don't mind helping with rust syntax too, just let me know what parts are tripping you up!
Stefan Puhlmann
@hstefan
Jun 06 2018 23:00
I'll open the PR tomorrow, but the change I made is something like this:
                       let long_arg_parse = self.parse_long_arg(matcher, &arg_os);
                        if let Err(e) = long_arg_parse {
                            if e.kind == ErrorKind::UnknownArgument {
                                continue;
                            } else {
                                return Err(e)
                            }
                        };
I don't know if there would be any more idiomatic way of doing that, though
but anyway... now I'm off to bed
Kevin K.
@kbknapp
Jun 06 2018 23:02
No rush, just let me know where I can help ;) thanks for tackling this too!