mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-04 04:33:23 +00:00
option to generate one file for C#
This commit is contained in:
@@ -93,6 +93,7 @@ static void Error(const std::string &err, bool usage, bool show_exe_name) {
|
||||
" --gen-includes Generate include statements for included schemas the\n"
|
||||
" generated file depends on (C++).\n"
|
||||
" --gen-mutable Generate accessors that can mutate buffers in-place.\n"
|
||||
" --gen-onefile Generate single output file for C#\n"
|
||||
" --raw-binary Allow binaries without file_indentifier to be read.\n"
|
||||
" This may crash flatc given a mismatched schema.\n"
|
||||
" --proto Input is a .proto, translate to .fbs.\n"
|
||||
@@ -140,7 +141,9 @@ int main(int argc, const char *argv[]) {
|
||||
opts.mutable_buffer = true;
|
||||
} else if(arg == "--gen-includes") {
|
||||
opts.include_dependence_headers = true;
|
||||
} else if(arg == "--raw-binary") {
|
||||
}else if (arg == "--gen-onefile") {
|
||||
opts.one_file = true;
|
||||
}else if (arg == "--raw-binary") {
|
||||
raw_binary = true;
|
||||
} else if(arg == "--") { // Separator between text and binary inputs.
|
||||
binary_files_from = filenames.size();
|
||||
|
||||
Reference in New Issue
Block a user