version 1.203, 2020/09/22 05:23:34 |
version 1.204, 2021/01/17 16:17:41 |
|
|
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, |
fprintf(stderr, |
"usage: %s [-2CDluvV] [-c shell-command] [-f file] [-L socket-name]\n" |
"usage: %s [-2CDlNuvV] [-c shell-command] [-f file] [-L socket-name]\n" |
" [-S socket-path] [-T features] [command [flags]]\n", |
" [-S socket-path] [-T features] [command [flags]]\n", |
getprogname()); |
getprogname()); |
exit(1); |
exit(1); |
|
|
if (**argv == '-') |
if (**argv == '-') |
flags = CLIENT_LOGIN; |
flags = CLIENT_LOGIN; |
|
|
while ((opt = getopt(argc, argv, "2c:CDdf:lL:qS:T:uUvV")) != -1) { |
while ((opt = getopt(argc, argv, "2c:CDdf:lL:NqS:T:uUvV")) != -1) { |
switch (opt) { |
switch (opt) { |
case '2': |
case '2': |
tty_add_features(&feat, "256", ":,"); |
tty_add_features(&feat, "256", ":,"); |
|
|
case 'L': |
case 'L': |
free(label); |
free(label); |
label = xstrdup(optarg); |
label = xstrdup(optarg); |
|
break; |
|
case 'N': |
|
flags |= CLIENT_NOSTARTSERVER; |
break; |
break; |
case 'q': |
case 'q': |
break; |
break; |