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

@@ -128,5 +128,7 @@ Additional options:
- `--reflect-types` : Add minimal type reflection to code generation.
- `--reflect-names` : Add minimal type/name reflection.
- `--root-type T` : Select or override the default root_type.
NOTE: short-form options for generators are deprecated, use the long form
whenever possible.