Refactor usage message (#7803)

* Update usage string formation

* Rework help message to use code generator interface

* update

* refactor
This commit is contained in:
Khanh Nguyen
2023-01-28 11:17:36 -08:00
committed by GitHub
parent 5b7a02d037
commit a105c26eca
3 changed files with 95 additions and 141 deletions

View File

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