version 1.198, 2018/11/16 03:03:10 |
version 1.199, 2019/01/21 22:50:42 |
|
|
addargs(&args, "-oRequestTTY=no"); |
addargs(&args, "-oRequestTTY=no"); |
|
|
fflag = tflag = 0; |
fflag = tflag = 0; |
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q12346S:o:F:")) != -1) |
while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q12346S:o:F:J:")) != -1) |
switch (ch) { |
switch (ch) { |
/* User-visible flags. */ |
/* User-visible flags. */ |
case '1': |
case '1': |
|
|
case 'c': |
case 'c': |
case 'i': |
case 'i': |
case 'F': |
case 'F': |
|
case 'J': |
addargs(&remote_remote_args, "-%c", ch); |
addargs(&remote_remote_args, "-%c", ch); |
addargs(&remote_remote_args, "%s", optarg); |
addargs(&remote_remote_args, "%s", optarg); |
addargs(&args, "-%c", ch); |
addargs(&args, "-%c", ch); |
|
|
{ |
{ |
(void) fprintf(stderr, |
(void) fprintf(stderr, |
"usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]\n" |
"usage: scp [-346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]\n" |
" [-l limit] [-o ssh_option] [-P port] [-S program] source ... target\n"); |
" [-J destination] [-l limit] [-o ssh_option] [-P port]\n" |
|
" [-S program] source ... target\n"); |
exit(1); |
exit(1); |
} |
} |
|
|