[pve-devel] [PATCH pve-xtermjs] termproxy: fix the command line help text

Dietmar Maurer dietmar at proxmox.com
Wed Jul 24 13:32:47 CEST 2024


The <listen-port> need to be the first argument.

Signed-off-by: Dietmar Maurer <dietmar at proxmox.com>
---
 termproxy/src/cli.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/termproxy/src/cli.rs b/termproxy/src/cli.rs
index cc44655..adfd830 100644
--- a/termproxy/src/cli.rs
+++ b/termproxy/src/cli.rs
@@ -4,7 +4,7 @@ use std::os::fd::RawFd;
 use anyhow::{bail, Result};
 
 const CMD_HELP: &str = "\
-Usage: proxmox-termproxy [OPTIONS] --path <path> <listen-port> -- <terminal-cmd>...
+Usage: proxmox-termproxy <listen-port> [OPTIONS] --path <path> -- <terminal-cmd>...
 
 Arguments:
   <listen-port>           Port or file descriptor to listen for TCP connections
-- 
2.39.2




More information about the pve-devel mailing list