|
|
da3252 |
From 7c2fac69e66456617b94d26026fcab6b379814c5 Mon Sep 17 00:00:00 2001
|
|
|
da3252 |
From: Ondrej Holy <oholy@redhat.com>
|
|
|
da3252 |
Date: Wed, 26 Feb 2020 11:12:46 +0100
|
|
|
da3252 |
Subject: [PATCH] Do not advertise /usb in help output if the channel is not
|
|
|
da3252 |
built
|
|
|
da3252 |
|
|
|
da3252 |
The help output advertise an option and an example for usb redirection
|
|
|
da3252 |
regardless of the fact whether the urbdrc channel was built or not.
|
|
|
da3252 |
This is confusing for people. Let's do not show /usb in help if it is
|
|
|
da3252 |
not built.
|
|
|
da3252 |
---
|
|
|
da3252 |
client/common/cmdline.c | 2 ++
|
|
|
da3252 |
client/common/cmdline.h | 2 ++
|
|
|
da3252 |
2 files changed, 4 insertions(+)
|
|
|
da3252 |
|
|
|
da3252 |
diff --git a/client/common/cmdline.c b/client/common/cmdline.c
|
|
|
da3252 |
index 103b4d245..44510a58c 100644
|
|
|
da3252 |
--- a/client/common/cmdline.c
|
|
|
da3252 |
+++ b/client/common/cmdline.c
|
|
|
da3252 |
@@ -166,7 +166,9 @@ BOOL freerdp_client_print_command_line_help_ex(int argc, char** argv,
|
|
|
da3252 |
printf("\n");
|
|
|
da3252 |
printf("Multimedia Redirection: /multimedia:sys:oss,dev:/dev/dsp1,decoder:ffmpeg\n");
|
|
|
da3252 |
printf("Multimedia Redirection: /multimedia:sys:alsa\n");
|
|
|
da3252 |
+#ifdef CHANNEL_URBDRC_CLIENT
|
|
|
da3252 |
printf("USB Device Redirection: /usb:id,dev:054c:0268\n");
|
|
|
da3252 |
+#endif
|
|
|
da3252 |
printf("\n");
|
|
|
da3252 |
printf("For Gateways, the https_proxy environment variable is respected:\n");
|
|
|
da3252 |
#ifdef _WIN32
|
|
|
da3252 |
diff --git a/client/common/cmdline.h b/client/common/cmdline.h
|
|
|
da3252 |
index 7f1d9e03f..b87871e64 100644
|
|
|
da3252 |
--- a/client/common/cmdline.h
|
|
|
da3252 |
+++ b/client/common/cmdline.h
|
|
|
da3252 |
@@ -173,7 +173,9 @@ static COMMAND_LINE_ARGUMENT_A args[] =
|
|
|
da3252 |
{ "toggle-fullscreen", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueTrue, NULL, -1, NULL, "Alt+Ctrl+Enter toggles fullscreen" },
|
|
|
da3252 |
{ "u", COMMAND_LINE_VALUE_REQUIRED, "[<domain>\\]<user> or <user>[@<domain>]", NULL, NULL, -1, NULL, "Username" },
|
|
|
da3252 |
{ "unmap-buttons", COMMAND_LINE_VALUE_BOOL, NULL, BoolValueFalse, NULL, -1, NULL, "Let server see real physical pointer button"},
|
|
|
da3252 |
+#ifdef CHANNEL_URBDRC_CLIENT
|
|
|
da3252 |
{ "usb", COMMAND_LINE_VALUE_REQUIRED, "[dbg,][dev:<dev>,][id|addr,][auto]", NULL, NULL, -1, NULL, "Redirect USB device" },
|
|
|
da3252 |
+#endif
|
|
|
da3252 |
{ "v", COMMAND_LINE_VALUE_REQUIRED, "<server>[:port]", NULL, NULL, -1, NULL, "Server hostname" },
|
|
|
da3252 |
{ "vc", COMMAND_LINE_VALUE_REQUIRED, "<channel>[,<options>]", NULL, NULL, -1, NULL, "Static virtual channel" },
|
|
|
da3252 |
{ "version", COMMAND_LINE_VALUE_FLAG | COMMAND_LINE_PRINT_VERSION, NULL, NULL, NULL, -1, NULL, "Print version" },
|
|
|
da3252 |
--
|
|
|
da3252 |
2.26.0
|
|
|
da3252 |
|