Skip to content

Commit

Permalink
remove --input arg for protoc-gen-hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
huangminghuang committed Sep 4, 2024
1 parent 8b094e3 commit f5cd2c7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions protoc-plugin/hpp_gen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1679,14 +1679,10 @@ int main(int argc, const char **argv) {
std::copy(std::istreambuf_iterator<char>(strm), std::istreambuf_iterator<char>(), std::back_inserter(request_data));
};

if (argc <= 2) {
#ifdef _WIN32
_setmode(_fileno(stdin), _O_BINARY);
_setmode(_fileno(stdin), _O_BINARY);
#endif
read_file(std::cin);
} else if (std::string_view("--input") == args[1]) {
read_file(std::ifstream(args[2], std::ios::binary));
}
read_file(std::cin);

gpb::compiler::CodeGeneratorRequest request;

Expand Down

0 comments on commit f5cd2c7

Please sign in to comment.