Add --force-defaults option to flatc [C++, parser] (#4729)

* Add --force-defaults option to flatc

To emit default values for fields which are not present or which are set
to the default value.

* flatc option --force-defaults should have a default value (false) and take action on the builder_ within the Parser constructor

* Add help text from flatc --force-defaults to Compiler.md doc

* Clarified docs for flatc --force-defaults, and imply that this behaviour is not normally needed.

* Updated docs and flatc help text for --force-defaults option
This commit is contained in:
Paul Reimer
2018-06-27 09:12:52 -07:00
committed by Wouter van Oortmerssen
parent e9912e9298
commit 741c63052d
3 changed files with 10 additions and 0 deletions

View File

@@ -136,5 +136,7 @@ Additional options:
- `--root-type T` : Select or override the default root_type.
- `--force-defaults` : Emit default values in binary output from JSON.
NOTE: short-form options for generators are deprecated, use the long form
whenever possible.