diff options
author | Paul Reimer <paulreimer@users.noreply.github.com> | 2018-06-27 09:12:52 -0700 |
---|---|---|
committer | Wouter van Oortmerssen <aardappel@gmail.com> | 2018-06-27 09:12:52 -0700 |
commit | 741c63052de40c72b21d704bd685dd311ea7e4a5 (patch) | |
tree | d671a0d7a20c49294f05df4ae2ec63b4655d86ba /docs | |
parent | e9912e92981d1edd25c91714e1275be6a9f5046b (diff) | |
download | flatbuffers-741c63052de40c72b21d704bd685dd311ea7e4a5.tar.gz flatbuffers-741c63052de40c72b21d704bd685dd311ea7e4a5.tar.bz2 flatbuffers-741c63052de40c72b21d704bd685dd311ea7e4a5.zip |
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
Diffstat (limited to 'docs')
-rw-r--r-- | docs/source/Compiler.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/source/Compiler.md b/docs/source/Compiler.md index a7302320..3a6adf81 100644 --- a/docs/source/Compiler.md +++ b/docs/source/Compiler.md @@ -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. |