summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKhanh Nguyen <44149581+Kn99HN@users.noreply.github.com>2023-01-28 11:17:36 -0800
committerGitHub <noreply@github.com>2023-01-28 13:17:36 -0600
commita105c26eca2166c0ac9e2026478ec158ffc01d2c (patch)
treec3554f6671bddd75845cc881e1521f6789a61183 /include
parent5b7a02d03797ab277e39c4543daeb865eb1c7092 (diff)
downloadflatbuffers-a105c26eca2166c0ac9e2026478ec158ffc01d2c.tar.gz
flatbuffers-a105c26eca2166c0ac9e2026478ec158ffc01d2c.tar.bz2
flatbuffers-a105c26eca2166c0ac9e2026478ec158ffc01d2c.zip
Refactor usage message (#7803)
* Update usage string formation * Rework help message to use code generator interface * update * refactor
Diffstat (limited to 'include')
-rw-r--r--include/flatbuffers/flatc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/flatbuffers/flatc.h b/include/flatbuffers/flatc.h
index 4fab34ca..b3730521 100644
--- a/include/flatbuffers/flatc.h
+++ b/include/flatbuffers/flatc.h
@@ -114,7 +114,7 @@ class FlatCompiler {
explicit FlatCompiler(const InitParams &params) : params_(params) {}
- bool RegisterCodeGenerator(const std::string& flag,
+ bool RegisterCodeGenerator(const FlatCOption &option,
std::shared_ptr<CodeGenerator> code_generator);
int Compile(const FlatCOptions &options);