aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-09-25 22:20:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-09-25 22:20:02 +0000
commit32e013eb878b2f9dd0e3ddf3481d76fd670c843b (patch)
tree17d8d2f08e47662868f7a4c5c13c9d4399c4c0ab /src
parentd03db1cd11b44adddbd1989c26ec81d235f32f07 (diff)
-c and -t is no longer prefered
Diffstat (limited to 'src')
-rw-r--r--src/main.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 1e0bb58f1..ddf12f110 100644
--- a/src/main.c
+++ b/src/main.c
@@ -661,10 +661,12 @@ 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 */
- config->resume_from= atoi(nextarg);
+ if(!strequal(nextarg, "-"))
+ config->resume_from= atoi(nextarg);
config->use_resume=TRUE;
break;
case 'd':
@@ -835,11 +837,14 @@ 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;
- GetStr(&config->infile, nextarg);
+ if(!strequal("-", nextarg))
+ /* make - equal stdin */
+ GetStr(&config->infile, nextarg);
break;
case 'u':
/* user:password */