mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
Merge "Terminate the output directory argument of flatc." into ub-games-master
This commit is contained in:
committed by
Android (Google) Code Review
commit
63f21cb2a5
@@ -136,6 +136,10 @@ int main(int argc, const char *argv[]) {
|
||||
case 'o':
|
||||
if (++i >= argc) Error("missing path following", arg, true);
|
||||
output_path = argv[i];
|
||||
if (!(output_path.back() == flatbuffers::kPathSeparator ||
|
||||
output_path.back() == flatbuffers::kPosixPathSeparator)) {
|
||||
output_path += flatbuffers::kPathSeparator;
|
||||
}
|
||||
break;
|
||||
case 'S':
|
||||
opts.strict_json = true;
|
||||
@@ -214,4 +218,3 @@ int main(int argc, const char *argv[]) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user