From 37fb5dce9689aecdf422a46d4fa5f1ae1ba9e68a Mon Sep 17 00:00:00 2001 From: kalaposfos13 <153381648+kalaposfos13@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:44:15 +0100 Subject: [PATCH] Update --help text --- src/main.cpp | 8 +++++--- src/qt_gui/main.cpp | 17 ++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 063a85ee3..b12965677 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -29,9 +29,11 @@ int main(int argc, char* argv[]) { [&](int&) { std::cout << "Usage: shadps4 [options] \n" "Options:\n" - " -g, --game Specify game path to launch\n" - " -p, --patch Apply specified patch file\n" - " -h, --help Display this help message\n"; + " -g, --game Specify game path to launch\n" + " -p, --patch Apply specified patch file\n" + " -f, --fullscreen Specify window initial fullscreen " + "state. Does not overwrite the config file." + " -h, --help Display this help message\n"; exit(0); }}, {"--help", [&](int& i) { arg_map["-h"](i); }}, diff --git a/src/qt_gui/main.cpp b/src/qt_gui/main.cpp index 040c1f53b..7f9b29200 100644 --- a/src/qt_gui/main.cpp +++ b/src/qt_gui/main.cpp @@ -37,14 +37,16 @@ int main(int argc, char* argv[]) { std::unordered_map> arg_map = { {"-h", [&](int&) { - std::cout << "Usage: emulator [options]\n" + std::cout << "Usage: shadps4 [options]\n" "Options:\n" " No arguments: Opens the GUI.\n" - " -g, --game Specify or to launch\n" - " -p, --patch Apply specified patch file\n" - " -s, --show-gui Show the GUI\n" - " -h, --help Display this help message\n"; + " -g, --game Specify or " + " to launch\n" + " -p, --patch Apply specified patch file\n" + " -s, --show-gui Show the GUI\n" + " -f, --fullscreen Specify window initial fullscreen " + "state. Does not overwrite the config file." + " -h, --help Display this help message\n"; exit(0); }}, {"--help", [&](int& i) { arg_map["-h"](i); }}, // Redirect --help to -h @@ -77,7 +79,8 @@ int main(int argc, char* argv[]) { {"-f", [&](int& i) { if (++i >= argc) { - std::cerr << "Error: Missing argument for -f/--fullscreen\n"; + std::cerr + << "Error: Invalid argument for -f/--fullscreen. Use 'true' or 'false'.\n"; exit(1); } std::string f_param(argv[i]);