Aliased flag options should be directed to stdout, not stderr to be consistent. Patch...
[oota-llvm.git] / lib / Support / CommandLine.cpp
index 7f1c0d320b11f7a27867b83806bdd4c784826372..29143377628dced506cc987259cd3873e5d8b86c 100644 (file)
@@ -911,8 +911,8 @@ size_t alias::getOptionWidth() const {
 // Print out the option for the alias.
 void alias::printOptionInfo(size_t GlobalWidth) const {
   size_t L = std::strlen(ArgStr);
-  errs() << "  -" << ArgStr;
-  errs().indent(GlobalWidth-L-6) << " - " << HelpStr << "\n";
+  outs() << "  -" << ArgStr;
+  outs().indent(GlobalWidth-L-6) << " - " << HelpStr << "\n";
 }
 
 //===----------------------------------------------------------------------===//