print usage parsing the cmdline args resulted in an error

Closes: https://github.com/facebook/xcbuild/issues/274
This commit is contained in:
IOhannes m zmölnig 2018-01-16 20:49:03 +01:00 committed by Stephane Sezer
parent eec239c50f
commit 72ba47965d

View File

@ -46,7 +46,8 @@ Run(process::User const *user, process::Context const *processContext, process::
Options options;
std::pair<bool, std::string> result = libutil::Options::Parse<Options>(&options, processContext->commandLineArguments());
if (!result.first) {
fprintf(stderr, "error: %s\n", result.second.c_str());
fprintf(stderr, "error: %s\n\n", result.second.c_str());
UsageAction::Run(processContext);
return 1;
}