From: Daniel Stenberg Date: Thu, 12 May 2005 07:28:03 +0000 (+0000) Subject: warn about bad -z syntax X-Git-Tag: curl-7_14_0~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebcaa3d5790414d8e678ed0b32d4283218802fe6;p=curl warn about bad -z syntax --- 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 */