-c and -t is no longer prefered

This commit is contained in:
Daniel Stenberg 2000-09-25 22:20:02 +00:00
parent d03db1cd11
commit 32e013eb87

View File

@ -661,9 +661,11 @@ static int getparameter(char *flag, /* f or -long-flag */
case 'c': case 'c':
/* This makes us continue an ftp transfer */ /* This makes us continue an ftp transfer */
config->use_resume^=TRUE; config->use_resume^=TRUE;
fprintf(stderr, "-c is a deprecated switch, use '-C -' instead!\n");
break; break;
case 'C': case 'C':
/* This makes us continue an ftp transfer at given position */ /* This makes us continue an ftp transfer at given position */
if(!strequal(nextarg, "-"))
config->resume_from= atoi(nextarg); config->resume_from= atoi(nextarg);
config->use_resume=TRUE; config->use_resume=TRUE;
break; break;
@ -835,10 +837,13 @@ static int getparameter(char *flag, /* f or -long-flag */
case 't': case 't':
/* we are uploading */ /* we are uploading */
config->conf ^= CONF_UPLOAD; config->conf ^= CONF_UPLOAD;
fprintf(stderr, "-t is a deprecated switch, use '-T -' instead!\n");
break; break;
case 'T': case 'T':
/* we are uploading */ /* we are uploading */
config->conf |= CONF_UPLOAD; config->conf |= CONF_UPLOAD;
if(!strequal("-", nextarg))
/* make - equal stdin */
GetStr(&config->infile, nextarg); GetStr(&config->infile, nextarg);
break; break;
case 'u': case 'u':