option to generate one file for C#

This commit is contained in:
Amol Deshpande
2015-06-06 19:35:12 -07:00
parent 932b22f043
commit 2f76141813
3 changed files with 32 additions and 10 deletions

View File

@@ -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();