diff options
author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2012-04-28 21:48:56 +0900 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2012-05-26 23:08:13 +0200 |
commit | a0d7a26e32532ced9be033439be815bbabaaba00 (patch) | |
tree | 387cd7200667f17a4758c818ff7e136c603610c3 /src/tool_getparam.c | |
parent | bb1ce6cc0b65e04e0698896dbe0efac7959d18de (diff) | |
download | curl-a0d7a26e32532ced9be033439be815bbabaaba00.tar.gz |
metalink: show help message even if disabled
Print message if --metalink is used while metalink support is not
enabled. Migrated Metalink support in tool_operate.c and removed
operatemetalink().
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index d102dc9f1..bdb4b04ae 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -826,9 +826,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ case 'H': /* --mail-auth */ GetStr(&config->mail_auth, nextarg); break; -#ifdef HAVE_LIBMETALINK case 'J': /* --metalink */ { +#ifdef HAVE_LIBMETALINK metalink_error_t r; metalink_t* metalink; metalink_file_t **files; @@ -889,9 +889,12 @@ ParameterError getparameter(char *flag, /* f or -long-flag */ } } } +#else + warnf(config, "--metalink option is ignored because the binary is " + "built without the Metalink support.\n"); +#endif break; } -#endif /* HAVE_LIBMETALINK */ } break; case '#': /* --progress-bar */ |