$ thrift1 --help
Usage: thrift [options] file
Options:
-o dir Set the output directory for gen-* packages
(default: current directory).
At most one of this option (-o) or -out (see below) can
be specified.
-out dir Set the output location for generated files
(no gen-* folder will be created).
At most one of this option (-out) or -o (see above) can
be specified.
-I dir Add a directory to the list of directories
searched for include directives
-nowarn Suppress all compiler warnings (BAD!)
-legacy-strict Strict compiler warnings on (DEPRECATED)
-v[erbose] Verbose mode
-r[ecurse] Also generate included files
-debug Parse debug trace to stdout
--allow-neg-keys Allow negative field keys (Used to preserve protocol
compatibility with older .thrift files)
--allow-neg-enum-vals Allow negative enum vals (DEPRECATED)
--allow-64bit-consts Do not print warnings about using 64-bit constants
--gen STR Generate code with a dynamically-registered generator.
STR has the form language[:key1=val1[,key2,[key3=val3]]].
Keys and values are options passed to the generator.
Many options will not require values.
If --skip-gen (see below) is specified, then --gen
cannot be used. Otherwise (i.e., --skip-gen is NOT
specified), then --gen must be specified at least once,
and may be specified multiple times (eg. to generate
multiple languages). --skip-gen Skip code generation. This is useful, for example, to
parse and validate Thrift IDL without generating code
for any particular language.
If --skip-gen is specified, no --gen argument may be
given (see above).
--record-genfiles FILE
Save the list of generated files to FILE,