Add --root-type option to flatc [C++, parser, JSON] (#4728)

* Add --root-type option to flatc

To select or override a root_type

* Add help text from flatc --root-type to Compiler.md doc
This commit is contained in:
Paul Reimer
2018-05-07 16:07:52 -07:00
committed by Wouter van Oortmerssen
parent d215852f52
commit 6621424308
4 changed files with 20 additions and 3 deletions

View File

@@ -390,6 +390,7 @@ struct IDLOptions {
bool reexport_ts_modules;
bool protobuf_ascii_alike;
bool size_prefixed;
std::string root_type;
// Possible options for the more general generator below.
enum Language {