From 12fa3bdd83b1f5d9f23c37aa3622693b7c16306c Mon Sep 17 00:00:00 2001 From: rilysh Date: Tue, 11 Jul 2023 11:26:57 -0400 Subject: [PATCH] use newline char instead flushing --- app/main.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/app/main.cpp b/app/main.cpp index 30cbf319..dea6d38c 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -49,15 +49,15 @@ int main(int argc, char *argv[]) if (argc>1 && (!strcmp(argv[1],"-h") || !strcmp(argv[1],"--help"))) { QTextStream cout(stdout, QIODevice::WriteOnly); - cout << "Usage: " << argv[0] << " [--default-settings] [--workdir ] [--program ] [-p|--profile ] [--fullscreen] [-h|--help]" << endl; - cout << " --default-settings Run cool-retro-term with the default settings" << endl; - cout << " --workdir Change working directory to 'dir'" << endl; - cout << " -e Command to execute. This option will catch all following arguments, so use it as the last option." << endl; - cout << " -T Set window title to 'title'." << endl; - cout << " --fullscreen Run cool-retro-term in fullscreen." << endl; - cout << " -p|--profile <prof> Run cool-retro-term with the given profile." << endl; - cout << " -h|--help Print this help." << endl; - cout << " --verbose Print additional information such as profiles and settings." << endl; + cout << "Usage: " << argv[0] << " [--default-settings] [--workdir <dir>] [--program <prog>] [-p|--profile <prof>] [--fullscreen] [-h|--help]" << '\n'; + cout << " --default-settings Run cool-retro-term with the default settings" << '\n'; + cout << " --workdir <dir> Change working directory to 'dir'" << '\n'; + cout << " -e <cmd> Command to execute. This option will catch all following arguments, so use it as the last option." << '\n'; + cout << " -T <title> Set window title to 'title'." << '\n'; + cout << " --fullscreen Run cool-retro-term in fullscreen." << '\n'; + cout << " -p|--profile <prof> Run cool-retro-term with the given profile." << '\n'; + cout << " -h|--help Print this help." << '\n'; + cout << " --verbose Print additional information such as profiles and settings." << '\n'; return 0; } @@ -65,7 +65,7 @@ int main(int argc, char *argv[]) if (argc>1 && (!strcmp(argv[1],"-v") || !strcmp(argv[1],"--version"))) { QTextStream cout(stdout, QIODevice::WriteOnly); - cout << "cool-retro-term " << appVersion << endl; + cout << "cool-retro-term " << appVersion << '\n'; return 0; }