summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main.cc b/src/main.cc
index 9abed21..27b4854 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -13,7 +13,7 @@ int main(int argc, char** argv) {
auto opt_version = args->option('V', "version", "display version and exit.");
if (!args->run(argc, argv)) {
args->print_error(std::cerr);
- std::cerr << "Try 'jkc --help' for more information." << std::endl;
+ std::cerr << "Try 'jkc --help' for more information.\n";
return 1;
}
if (opt_help->is_set()) {
@@ -21,12 +21,11 @@ int main(int argc, char** argv) {
<< "Java and Kotlin Compiler\n"
<< "\n";
args->print_help(std::cout);
- std::cout << std::flush;
return 0;
}
if (opt_version->is_set()) {
std::cout << "jkc " << VERSION
- << " written by Joel Klinghed <the_jk@spawned.biz>." << std::endl;
+ << " written by Joel Klinghed <the_jk@spawned.biz>.\n";
return 0;
}
return 0;