From 4cf254019fe5d696c417aa30757ee0c48ce4dde1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 7 Feb 2025 09:55:13 +0900 Subject: [PATCH] CLI: tweaks for the help message --- retrodeck.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/retrodeck.sh b/retrodeck.sh index cb2f7e5d..a8efd85a 100644 --- a/retrodeck.sh +++ b/retrodeck.sh @@ -15,22 +15,22 @@ pretty_resettable_components=$(echo "$resettable_components" | sed 's/|/, /g') show_cli_help() { echo -e " - Usage: +Usage: flatpak run [FLATPAK-RUN-OPTION] net.retrodeck-retrodeck [ARGUMENTS] Arguments: -h, --help \t Print this help -v, --version \t Print RetroDECK version --info-msg \t Print paths and config informations - --debug \t Enable debug logging for this launch of RetroDECK (This may miss errors very early in the launch process) + --debug \t Enable debug logging for this run of RetroDECK --configurator \t Starts the RetroDECK Configurator --compress-one \t Compresses target file to a compatible format --compress-all \t Compresses all supported games into a compatible format.\n\t\t\t\t\t\t Available formats are \"chd\", \"zip\", \"rvz\" and \"all\" --reset-component \t Reset one or more component or emulator configs to the default values --reset-retrodeck \t Starts the initial RetroDECK installer (backup your data first!) --test-upgrade \t Test upgrading RetroDECK to a specific version, developer use only - --set [value] \t Set or toggle a preset. Examples: --set borders, --set borders all true, --set borders gba false. --set help for more help - --open \t Open a specific component or emulator, --open --getlist for a list of available components + --set [value] \t Configure or toggle a preset. Examples: --set borders, --set borders all true,\n\t\t\t\t\t\t --set borders gba false. Use --set help for more information + --open \t Open a specific component or emulator\n\t\t\t\t\t\t --open --getlist for a list of available components Game Launch: [] \t Start a game using the default emulator or\n\t\t\t\t\t\t the one defined in ES-DE for game or system @@ -41,6 +41,7 @@ Game Launch: For flatpak run specific options please run: flatpak run -h +The RetroDECK Team https://retrodeck.net " } @@ -50,7 +51,11 @@ https://retrodeck.net for i in "$@"; do case $i in -h*|--help*) - echo "RetroDECK v""$version" + if [[ "$version" == *"cooker"* ]]; then + echo "RetroDECK $version" + else + echo "RetroDECK v$version" + fi show_cli_help exit ;;