mirror of
https://github.com/curl/curl.git
synced 2026-08-04 08:09:58 +03:00
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().
This commit is contained in:
parent
bb1ce6cc0b
commit
a0d7a26e32
4 changed files with 97 additions and 974 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue