|
|
|
@ -1432,14 +1432,14 @@ CommandLineInterface::InterpretArgument(const std::string& name, |
|
|
|
|
#if defined(_WIN32) |
|
|
|
|
// On Windows, the shell (typically cmd.exe) does not expand wildcards in
|
|
|
|
|
// file names (e.g. foo\*.proto), so we do it ourselves.
|
|
|
|
|
switch (google::protobuf::internal::win32::expand_wildcards( |
|
|
|
|
switch (google::protobuf::io::win32::expand_wildcards( |
|
|
|
|
value, |
|
|
|
|
[this](const string& path) { |
|
|
|
|
this->input_files_.push_back(path); |
|
|
|
|
})) { |
|
|
|
|
case google::protobuf::internal::win32::ExpandWildcardsResult::kSuccess: |
|
|
|
|
case google::protobuf::io::win32::ExpandWildcardsResult::kSuccess: |
|
|
|
|
break; |
|
|
|
|
case google::protobuf::internal::win32::ExpandWildcardsResult::kErrorNoMatchingFile: |
|
|
|
|
case google::protobuf::io::win32::ExpandWildcardsResult::kErrorNoMatchingFile: |
|
|
|
|
// Path does not exist, is not a file, or it's longer than MAX_PATH and
|
|
|
|
|
// long path handling is disabled.
|
|
|
|
|
std::cerr << "Invalid file name pattern or missing input file \"" |
|
|
|
|