Reorder wsssht --help options for better organization

- Move --wssshd-port option to appear right after --wssshd-host
- Update both usage message in wsssht.c and man page wsssht.1
- Maintain logical grouping of related options
parent e4f83534
......@@ -38,6 +38,9 @@ Specify the local IP address to bind the tunnel to (default: 127.0.0.1)
.BR \-\-wssshd\-host " \fIHOST\fR"
Specify the wssshd server hostname (required if not in config)
.TP
.BR \-\-wssshd\-port " \fIPORT\fR"
WebSocket SSH daemon server port (default: 9898)
.TP
.BR \-\-interval " \fISEC\fR"
Connection retry interval in seconds (default: 5)
.TP
......@@ -55,9 +58,6 @@ Service type (default: ssh)
.TP
.BR \-\-help
Display help message and exit
.TP
.BR \-\-wssshd\-port " \fIPORT\fR"
WebSocket SSH daemon server port (default: 9898)
.SH EXAMPLES
.TP
Basic tunnel setup:
......
......@@ -49,13 +49,13 @@ void print_usage(const char *program_name) {
fprintf(stderr, " --tunnel-port PORT Local tunnel port (default: auto)\n");
fprintf(stderr, " --tunnel-host HOST Local IP address to bind tunnel to (default: 127.0.0.1)\n");
fprintf(stderr, " --wssshd-host HOST wssshd server hostname (required if not in config)\n");
fprintf(stderr, " --wssshd-port PORT wssshd server port (default: 9898)\n");
fprintf(stderr, " --interval SEC Connection retry interval in seconds (default: 5)\n");
fprintf(stderr, " --debug Enable debug output\n");
fprintf(stderr, " --tunnel TYPES Transport types for data channel (comma-separated or 'any', default: any)\n");
fprintf(stderr, " --tunnel-control TYPES Transport types for control channel (comma-separated or 'any', default: any)\n");
fprintf(stderr, " --service SERVICE Service type (default: ssh)\n");
fprintf(stderr, " --help Show this help\n");
fprintf(stderr, " --wssshd-port PORT wssshd server port (default: 9898)\n");
fprintf(stderr, "\nExamples:\n");
fprintf(stderr, " %s --clientid myclient --wssshd-host mbetter.nexlab.net --wssshd-port 9898\n", program_name);
fprintf(stderr, " %s --tunnel-port 2222 --clientid myclient --wssshd-host mbetter.nexlab.net\n", program_name);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment