frol/flatc-rust

Is it possible to pass all set of flatc args?

moiseevigor opened this issue · 2 comments

flatc has rich set of arguments https://google.github.io/flatbuffers/flatbuffers_guide_using_schema_compiler.html

I saw you implement the basic set that works just fine, but for example I'd love to modify the --filename-suffix, but cannot findout how?

Help would be much appreciated!

frol commented

@moiseevigor There is currently no way to do that, and I don't have bandwidth to work on flatc-rust at this point in time, but I would happily review, merge, and release if you send a pull request.

You need to figure out the way it makes sense to pass the argument down to

pub fn run(&self, args: Args) -> Result<()> {

Got it, thanks for the reply! I'll try to work on it.