Add new opt https_only_mode & min_tls_version

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-22 19:01:40 +10:00
parent eb7d460a9a
commit 64f468acd6
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -84,6 +84,14 @@ struct Options {
#[clap(long)]
no_cleanup: bool,
/// Enable https only mode
#[clap(long)]
https_only_mode: bool,
/// Decide which TLS version to use.
#[clap(long, arg_enum)]
min_tls_version: Option<TLSVersion>,
/// Override manifest source.
///
/// This skips searching crates.io for a manifest and uses the specified path directly, useful