We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--proto
1 parent dc8799d commit 928f447Copy full SHA for 928f447
src/flatc.cpp
@@ -768,11 +768,8 @@ void FlatCompiler::ValidateOptions(const FlatCOptions &options) {
768
769
if (!options.filenames.size()) Error("missing input files", false, true);
770
771
- if (opts.proto_mode) {
772
- if (options.any_generator)
773
- Error("cannot generate code directly from .proto files", true);
774
- } else if (!options.any_generator && options.conform_to_schema.empty() &&
775
- options.annotate_schema.empty()) {
+ if (!options.any_generator && options.conform_to_schema.empty() &&
+ options.annotate_schema.empty()) {
776
Error("no options: specify at least one generator.", true);
777
}
778
0 commit comments