|
I'm trying to parse a structure that more or less looks like this: enum Mode {
Foo,
Bar { baz: String }
}Ideally, I've tried combining positional parsers and even implementing my own, but I'm pretty sure I'm |
Answered by
pacak
Aug 28, 2022
Replies: 1 comment
|
Positional with a special meaning that changes the meaning of subsequent parsers is usually a See a complete example here: https://github.com/pacak/bpaf/blob/master/examples/git.rs |
0 replies
Answer selected by
pacak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Positional with a special meaning that changes the meaning of subsequent parsers is usually a
commandand you combine them withconstruct!([foo, bar]).See a complete example here: https://github.com/pacak/bpaf/blob/master/examples/git.rs