Add new option Options::force

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-08-04 23:45:53 +10:00
parent 0bbeecce86
commit 04fee49c22
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -131,6 +131,10 @@ struct Options {
#[clap(help_heading = "Options", long)] #[clap(help_heading = "Options", long)]
secure: bool, secure: bool,
/// Force a crate to be installed even if it is already installed.
#[clap(help_heading = "Options", long)]
force: bool,
/// Require a minimum TLS version from remote endpoints. /// Require a minimum TLS version from remote endpoints.
/// ///
/// The default is not to require any minimum TLS version, and use the negotiated highest /// The default is not to require any minimum TLS version, and use the negotiated highest