mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-03 20:31:23 +00:00
deprecate the two options which have no effect of their own (#8831)
This commit is contained in:
@@ -248,11 +248,8 @@ const static FlatCOption flatc_options[] = {
|
||||
{"", "json-nested-bytes", "",
|
||||
"Allow a nested_flatbuffer field to be parsed as a vector of bytes "
|
||||
"in JSON, which is unsafe unless checked by a verifier afterwards."},
|
||||
{"", "ts-flat-files", "",
|
||||
"Generate a single typescript file per .fbs file. Implies "
|
||||
"ts_entry_points."},
|
||||
{"", "ts-entry-points", "",
|
||||
"Generate entry point typescript per namespace. Implies gen-all."},
|
||||
{"", "ts-flat-files", "", "(deprecated) Alias for --gen-all."},
|
||||
{"", "ts-entry-points", "", "(deprecated) Alias for --gen-all."},
|
||||
{"", "annotate-sparse-vectors", "", "Don't annotate every vector element."},
|
||||
{"", "annotate", "SCHEMA",
|
||||
"Annotate the provided BINARY_FILE with the specified SCHEMA file."},
|
||||
@@ -680,11 +677,12 @@ FlatCOptions FlatCompiler::ParseFromCommandLineArguments(int argc,
|
||||
} else if (arg == "--json-nested-bytes") {
|
||||
opts.json_nested_legacy_flatbuffers = true;
|
||||
} else if (arg == "--ts-flat-files") {
|
||||
opts.ts_flat_files = true;
|
||||
opts.ts_entry_points = true;
|
||||
// deprecated -- just enables generate_all
|
||||
Warn("--ts-flat-files is deprecated; use --gen-all instead.\n");
|
||||
opts.generate_all = true;
|
||||
} else if (arg == "--ts-entry-points") {
|
||||
opts.ts_entry_points = true;
|
||||
// deprecated -- just enables generate_all
|
||||
Warn("--ts-entry-points is deprecated; use --gen-all instead.\n");
|
||||
opts.generate_all = true;
|
||||
} else if (arg == "--ts-no-import-ext") {
|
||||
opts.ts_no_import_ext = true;
|
||||
|
||||
Reference in New Issue
Block a user