mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
-c and -t is no longer prefered
This commit is contained in:
parent
d03db1cd11
commit
32e013eb87
@ -661,9 +661,11 @@ static int getparameter(char *flag, /* f or -long-flag */
|
||||
case 'c':
|
||||
/* This makes us continue an ftp transfer */
|
||||
config->use_resume^=TRUE;
|
||||
fprintf(stderr, "-c is a deprecated switch, use '-C -' instead!\n");
|
||||
break;
|
||||
case 'C':
|
||||
/* This makes us continue an ftp transfer at given position */
|
||||
if(!strequal(nextarg, "-"))
|
||||
config->resume_from= atoi(nextarg);
|
||||
config->use_resume=TRUE;
|
||||
break;
|
||||
@ -835,10 +837,13 @@ static int getparameter(char *flag, /* f or -long-flag */
|
||||
case 't':
|
||||
/* we are uploading */
|
||||
config->conf ^= CONF_UPLOAD;
|
||||
fprintf(stderr, "-t is a deprecated switch, use '-T -' instead!\n");
|
||||
break;
|
||||
case 'T':
|
||||
/* we are uploading */
|
||||
config->conf |= CONF_UPLOAD;
|
||||
if(!strequal("-", nextarg))
|
||||
/* make - equal stdin */
|
||||
GetStr(&config->infile, nextarg);
|
||||
break;
|
||||
case 'u':
|
||||
|
Loading…
Reference in New Issue
Block a user