@@ -52,28 +52,27 @@ void print_help() {
5252 "VERSION:\n"
5353 " %s\n\n"
5454 "OPTIONS:\n"
55- " --port, -p Port to listen (default: 7681, use `0` for random port)\n"
56- " --interface, -i Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)\n"
57- " --credential, -c Credential for Basic Authentication (format: username:password)\n"
58- " --uid, -u User id to run with\n"
59- " --gid, -g Group id to run with\n"
60- " --signal, -s Signal to send to the command when exit it (default: SIGHUP)\n"
61- " --signal-list Print a list of supported signals\n"
62- " --reconnect, -r Time to reconnect for the client in seconds (default: 10)\n"
63- " --readonly, -R Do not allow clients to write to the TTY\n"
64- " --client-option, -t Send option to client (format: key=value), repeat to add more options\n"
65- " --check-origin, -O Do not allow websocket connection from different origin\n"
66- " --max-clients, -m Maximum clients to support (default: 0, no limit)\n"
67- " --once, -o Accept only one client and exit on disconnection\n"
68- " --browser, -B Open terminal with the default system browser\n"
69- " --index, -I Custom index.html path\n"
70- " --ssl, -S Enable SSL\n"
71- " --ssl-cert, -C SSL certificate file path\n"
72- " --ssl-key, -K SSL key file path\n"
73- " --ssl-ca, -A SSL CA file path for client certificate verification\n"
74- " --debug, -d Set log level (default: 7)\n"
75- " --version, -v Print the version and exit\n"
76- " --help, -h Print this text and exit\n\n"
55+ " -p, --port Port to listen (default: 7681, use `0` for random port)\n"
56+ " -i, --interface Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)\n"
57+ " -c, --credential Credential for Basic Authentication (format: username:password)\n"
58+ " -u, --uid User id to run with\n"
59+ " -g, --gid Group id to run with\n"
60+ " -s, --signal Signal to send to the command when exit it (default: SIGHUP)\n"
61+ " -r, --reconnect Time to reconnect for the client in seconds (default: 10)\n"
62+ " -R, --readonly Do not allow clients to write to the TTY\n"
63+ " -t, --client-option Send option to client (format: key=value), repeat to add more options\n"
64+ " -O, --check-origin Do not allow websocket connection from different origin\n"
65+ " -m, --max-clients Maximum clients to support (default: 0, no limit)\n"
66+ " -o, --once Accept only one client and exit on disconnection\n"
67+ " -B, --browser Open terminal with the default system browser\n"
68+ " -I, --index Custom index.html path\n"
69+ " -S, --ssl Enable SSL\n"
70+ " -C, --ssl-cert SSL certificate file path\n"
71+ " -K, --ssl-key SSL key file path\n"
72+ " -A, --ssl-ca SSL CA file path for client certificate verification\n"
73+ " -d, --debug Set log level (default: 7)\n"
74+ " -v, --version Print the version and exit\n"
75+ " -h, --help Print this text and exit\n\n"
7776 "Visit https://github.com/tsl0922/ttyd to get more information and report bugs.\n" ,
7877 TTYD_VERSION
7978 );
@@ -235,9 +234,6 @@ main(int argc, char **argv) {
235234 int c ;
236235 while ((c = getopt_long (start , argv , opt_string , options , NULL )) != -1 ) {
237236 switch (c ) {
238- case 1 :
239- print_sig_list ();
240- exit (EXIT_SUCCESS );
241237 case 'h' :
242238 print_help ();
243239 return 0 ;
0 commit comments