aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-12 07:28:03 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-12 07:28:03 +0000
commitebcaa3d5790414d8e678ed0b32d4283218802fe6 (patch)
treee6ee3aa1c5eb6c7fada2ef36ab30bc0e6d25ed84 /src/main.c
parent60e26199a266ca109ff85481457696090aebe48a (diff)
warn about bad -z syntax
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8af81392e..f5e4e1775 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2205,6 +2205,10 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
if(-1 == stat(nextarg, &statbuf)) {
/* failed, remove time condition */
config->timecond = CURL_TIMECOND_NONE;
+ fprintf(stderr,
+ "Warning: Illegal date format for -z/--timecond and not "
+ "a file name.\n"
+ " See curl_getdate(3) for valid date syntax.\n");
}
else {
/* pull the time out from the file */