-
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 |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
Positional with a special meaning that changes the meaning of subsequent parsers is usually a
command
and you combine them withconstruct!([foo, bar])
.See a complete example here: https://github.com/pacak/bpaf/blob/master/examples/git.rs