version 1.18, 2001/06/23 15:12:20 |
version 1.19, 2001/09/17 17:57:57 |
|
|
static void |
static void |
usage(void) |
usage(void) |
{ |
{ |
fprintf(stderr, "usage: sftp [-1vC] [-b batchfile] [-osshopt=value] [user@]host[:file [file]]\n"); |
fprintf(stderr, |
|
"usage: sftp [-1vC] [-b batchfile] [-F config] [-o option]\n" |
|
" [user@]host[:file [file]]\n"); |
exit(1); |
exit(1); |
} |
} |
|
|
|
|
ll = SYSLOG_LEVEL_INFO; |
ll = SYSLOG_LEVEL_INFO; |
infile = stdin; /* Read from STDIN unless changed by -b */ |
infile = stdin; /* Read from STDIN unless changed by -b */ |
|
|
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:")) != -1) { |
while ((ch = getopt(argc, argv, "1hvCo:s:S:b:F:")) != -1) { |
switch (ch) { |
switch (ch) { |
case 'C': |
case 'C': |
addargs(&args, "-C"); |
addargs(&args, "-C"); |
|
|
} |
} |
debug_level++; |
debug_level++; |
break; |
break; |
|
case 'F': |
case 'o': |
case 'o': |
addargs(&args, "-o%s", optarg); |
addargs(&args, "-%c%s", ch, optarg); |
break; |
break; |
case '1': |
case '1': |
sshver = 1; |
sshver = 1; |