Skip to content

Commit

Permalink
use cerr rather than cout everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
rob-p committed Aug 31, 2016
1 parent fe4e7ec commit 454c7d6
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/BuildSalmonIndex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ Index
==========
Creates a salmon index.
)";
std::cout << hstring << std::endl;
std::cout << generic << std::endl;
std::cerr << hstring << std::endl;
std::cerr << generic << std::endl;
std::exit(0);
}
po::notify(vm);
Expand Down
2 changes: 0 additions & 2 deletions src/Salmon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ int help(int argc, char* argv[]) {
*/

std::cerr << helpMsg.str();
//std::cerr << " Salmon v" << salmon::version << helpmsg << "\n";
return 1;
}

Expand Down Expand Up @@ -176,7 +175,6 @@ int main( int argc, char* argv[] ) {
}

if (vm.count("help") and !vm.count("command")) {
//std::cout << sfopts << std::endl;
help(argc, argv);
std::exit(0);
}
Expand Down
4 changes: 2 additions & 2 deletions src/SalmonQuantify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2293,8 +2293,8 @@ Quant
Perform streaming mapping-based estimation of
transcript abundance from RNA-seq reads
)";
std::cout << hstring << std::endl;
std::cout << visible << std::endl;
std::cerr << hstring << std::endl;
std::cerr << visible << std::endl;
std::exit(0);
}

Expand Down
6 changes: 3 additions & 3 deletions src/SalmonQuantifyAlignments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1349,8 +1349,8 @@ int salmonAlignmentQuantify(int argc, char* argv[]) {
po::store(orderedOptions, vm);

if (vm.count("help")) {
std::cout << "Salmon quant (alignment-based)\n";
std::cout << visible << std::endl;
std::cerr << "Salmon quant (alignment-based)\n";
std::cerr << visible << std::endl;
std::exit(0);
}
po::notify(vm);
Expand Down Expand Up @@ -1485,7 +1485,7 @@ int salmonAlignmentQuantify(int argc, char* argv[]) {
std::exit(1);
}
if (!sopt.quiet) {
std::cout << "Logs will be written to " << logDirectory.string() << "\n";
std::cerr << "Logs will be written to " << logDirectory.string() << "\n";
}

bfs::path logPath = logDirectory / "salmon.log";
Expand Down
2 changes: 1 addition & 1 deletion src/SalmonUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1322,7 +1322,7 @@ bool processQuantOptions(SalmonOpts& sopt,
}

if (!sopt.quiet) {
std::cout << "Logs will be written to " << logDirectory.string() << "\n";
std::cerr << "Logs will be written to " << logDirectory.string() << "\n";
}

// Determine what we'll do with quasi-mapping results
Expand Down

0 comments on commit 454c7d6

Please sign in to comment.