Add help function.

Signed-off-by: Rohan Barar <rohan.barar@gmail.com>
This commit is contained in:
Rohan Barar
2026-02-02 17:28:22 +11:00
parent 7cc5df7c1b
commit 490abd1ba2
+23
View File
@@ -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 <remoteapp-executable>"
echo " ${script_name} <app> [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 <remoteapp-executable> --> Start a RemoteApp session for an arbitrary executable."
echo " <app> [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() {