diff --git a/docs/html/md__compiler.html b/docs/html/md__compiler.html index 2fe560da6..ff3f7fe22 100644 --- a/docs/html/md__compiler.html +++ b/docs/html/md__compiler.html @@ -61,18 +61,28 @@ $(document).ready(function(){initNavTree('md__compiler.html','');});
Usage:
flatc [ -c ] [ -j ] [ -b ] [ -t ] [ -o PATH ] [ -I PATH ] [ -S ] FILES... +Usage:
flatc [ GENERATOR OPTIONS ] [ -o PATH ] [ -I PATH ] [ -S ] FILES... [ -- FILES...]The files are read and parsed in order, and can contain either schemas or data (see below). Later files can make use of definitions in earlier files.
--
indicates that the following files are binary files in FlatBuffer format conforming to the schema(s) indicated before it. Incompatible binary files currently will give unpredictable results (!)Depending on the flags passed, additional files may be generated for each file processed:
+For any schema input files, one or more generators can be specified:
++
+- +
--cpp
,-c
: Generate a C++ header for all definitions in this file (asfilename_generated.h
).- +
--java
,-j
: Generate Java code.- +
--csharp
,-n
: Generate C# code.- +
--go
,-g
: Generate Go code.- +
--python
,-p
: Generate Python code.- +
--javascript
,-s
: Generate JavaScript code.- +
--php
: Generate PHP code.For any data input files:
++
+- +
--binary
,-b
: If data is contained in this file, generate afilename.bin
containing the binary flatbuffer (or a different extension if one is specified in the schema).- +
--json
,-t
: If data is contained in this file, generate afilename.json
representing the data in the flatbuffer.Additional options:
-
+- -
-c
: Generate a C++ header for all definitions in this file (asfilename_generated.h
). Skipped for data.- -
-j
: Generate Java classes. Skipped for data.- -
-n
: Generate C# classes. Skipped for data.- -
-g
: Generate Go classes. Skipped for data.- -
-b
: If data is contained in this file, generate afilename.bin
containing the binary flatbuffer.-t
: If data is contained in this file, generate afilename.json
representing the data in the flatbuffer.-o PATH
: Output all generated files to PATH (either absolute, or relative to the current directory). If omitted, PATH will be the current directory. PATH should end in your systems path separator, e.g./
or\
.-I PATH
: when encounteringinclude
statements, attempt to load the files from this path. Paths will be tried in the order given, and if all fail (or none are specified) it will try to load relative to the path of the schema file being parsed.- @@ -86,8 +96,9 @@ $(document).ready(function(){initNavTree('md__compiler.html','');});
-M
: Print make rules for generated files.--gen-onefile
: Generate single output file (useful for C#)--raw-binary
: Allow binaries without a file_indentifier to be read. This may crash flatc given a mismatched schema.- -
--proto
: Expect input files to be .proto files (protocol buffers). Output the corresponding .fbs file. Currently supports:package
,message
,enum
, nested declarations,import
(use-I
for paths),extend
,oneof
,group
. Does not support, but will skip without error:option
,service
,extensions
, and most everything else.- +
--schema
: Serialize schemas instead of JSON (use with -b). This will output a binary version of the specified schema that itself corresponds to the reflection/reflection.fbs schema. Loading this binary file is the basis for reflection functionality.--schema
: Serialize schemas instead of JSON (use with -b). This will output a binary version of the specified schema that itself corresponds to the reflection/reflection.fbs schema. Loading this binary file is the basis for reflection functionality.NOTE: short-form options for generators are deprecated, use the long form whenever possible.