From 490abd1ba227fc2140f5a0e059d8174a1da38c8e Mon Sep 17 00:00:00 2001 From: Rohan Barar Date: Mon, 2 Feb 2026 17:28:22 +1100 Subject: [PATCH] Add help function. Signed-off-by: Rohan Barar --- bin/winapps | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/bin/winapps b/bin/winapps index ed329ae..8523396 100755 --- a/bin/winapps +++ b/bin/winapps @@ -234,6 +234,29 @@ function waFixRemovableMedia() { "WinApps Notice" "Using default removable media path: $REMOVABLE_MEDIA" fi } + +# Name: 'waHelp' +# Role: Print usage information. +function waHelp() { + local script_name + script_name="$(basename "$0")" + + echo "Usage:" + echo " ${script_name} help" + echo " ${script_name} killrdp" + echo " ${script_name} windows" + echo " ${script_name} manual " + echo " ${script_name} [file]" + echo + + echo "Commands:" + echo " help --> Show this help message." + echo " killrdp --> Terminate any running WinApps FreeRDP sessions." + echo " windows --> Start a full Windows desktop RDP session." + echo " manual --> Start a RemoteApp session for an arbitrary executable." + echo " [file] --> Start a community-tested application using a preconfigured definition. Optionally open a file." +} + # Name: 'waFixScale' # Role: Since FreeRDP only supports '/scale' values of 100, 140 or 180, find the closest supported argument to the user's configuration. function waFixScale() {