From a8c781e85cee90dcebc2996cc4d6dfd7a453c9bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Tue, 7 Sep 2021 13:01:04 +0100 Subject: [PATCH] Delete '-r' shortcut for --auto-resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The '-r' shortcut was alread used for '--reconnect' in virt-viewer. The --auto-resize arg is a fairly niche use case so doesn't really need a shortcut. Signed-off-by: Daniel P. Berrangé --- man/remote-viewer.pod | 2 +- man/virt-viewer.pod | 2 +- src/virt-viewer-app.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/man/remote-viewer.pod b/man/remote-viewer.pod index c25b70e..914e0e5 100644 --- a/man/remote-viewer.pod +++ b/man/remote-viewer.pod @@ -59,7 +59,7 @@ can be disabled by the C<--auto-resize> arguemnt. To specify which client monitors are used in fullscreen mode, see the CONFIGURATION section below. -=item -r , --auto-resize +=item --auto-resize Controls whether it is permitted to attempt to resize the remote framebuffer to match the local window size. This currently defaults to on, but note that diff --git a/man/virt-viewer.pod b/man/virt-viewer.pod index f766c88..2610065 100644 --- a/man/virt-viewer.pod +++ b/man/virt-viewer.pod @@ -82,7 +82,7 @@ necessary. This is currently implemented by the Spice backend only. To specify which client monitors are used in fullscreen mode, see the CONFIGURATION section below. -=item -r , --auto-resize +=item --auto-resize Controls whether it is permitted to attempt to resize the remote framebuffer to match the local window size. This currently defaults to on, but note that diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c index e834a3e..f832664 100644 --- a/src/virt-viewer-app.c +++ b/src/virt-viewer-app.c @@ -3559,7 +3559,7 @@ virt_viewer_app_add_option_entries(G_GNUC_UNUSED VirtViewerApp *self, N_("Open in full screen mode (adjusts guest resolution to fit the client)"), NULL }, { "hotkeys", 'H', 0, G_OPTION_ARG_STRING, &opt_hotkeys, N_("Customise hotkeys"), NULL }, - { "auto-resize", 'r', 0, G_OPTION_ARG_STRING, &opt_resize, + { "auto-resize", '\0', 0, G_OPTION_ARG_STRING, &opt_resize, N_("Automatically resize remote framebuffer"), N_("") }, { "keymap", 'K', 0, G_OPTION_ARG_STRING, &opt_keymap, N_("Remap keys format key=keymod+key e.g. F1=SHIFT+CTRL+F1,1=SHIFT+F1,ALT_L=Void"), NULL },