mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Stop lying about url support
This commit is contained in:
parent
f2582b9cf2
commit
15d828b55b
1 changed files with 9 additions and 9 deletions
18
src/main.rs
18
src/main.rs
|
@ -23,14 +23,14 @@ use cargo_binstall::{
|
||||||
#[derive(Debug, Parser)]
|
#[derive(Debug, Parser)]
|
||||||
#[clap(version, about = "Install a Rust binary... from binaries!")]
|
#[clap(version, about = "Install a Rust binary... from binaries!")]
|
||||||
struct Options {
|
struct Options {
|
||||||
/// Package name or URL for installation.
|
/// Package name for installation.
|
||||||
///
|
///
|
||||||
/// This must be either a crates.io package name or github or gitlab URL.
|
/// This must be a crates.io package name.
|
||||||
#[clap(value_name = "crate")]
|
#[clap(value_name = "crate")]
|
||||||
name: String,
|
name: String,
|
||||||
|
|
||||||
/// Semver filter to select the package version to install.
|
/// Semver filter to select the package version to install.
|
||||||
///
|
///
|
||||||
/// This is in Cargo.toml dependencies format: `--version 1.2.3` is equivalent to
|
/// This is in Cargo.toml dependencies format: `--version 1.2.3` is equivalent to
|
||||||
/// `--version "^1.2.3"`. Use `=1.2.3` to install a specific version.
|
/// `--version "^1.2.3"`. Use `=1.2.3` to install a specific version.
|
||||||
#[clap(long, default_value = "*")]
|
#[clap(long, default_value = "*")]
|
||||||
|
@ -41,17 +41,17 @@ struct Options {
|
||||||
target: Option<String>,
|
target: Option<String>,
|
||||||
|
|
||||||
/// Override install path for downloaded binary.
|
/// Override install path for downloaded binary.
|
||||||
///
|
///
|
||||||
/// Defaults to `$HOME/.cargo/bin`
|
/// Defaults to `$HOME/.cargo/bin`
|
||||||
#[clap(help_heading = "OVERRIDES", long)]
|
#[clap(help_heading = "OVERRIDES", long)]
|
||||||
install_path: Option<String>,
|
install_path: Option<String>,
|
||||||
|
|
||||||
/// Disable symlinking / versioned updates.
|
/// Disable symlinking / versioned updates.
|
||||||
///
|
///
|
||||||
/// By default, Binstall will install a binary named `<name>-<version>` in the install path, and
|
/// By default, Binstall will install a binary named `<name>-<version>` in the install path, and
|
||||||
/// either symlink or copy it to (depending on platform) the plain binary name. This makes it
|
/// either symlink or copy it to (depending on platform) the plain binary name. This makes it
|
||||||
/// possible to have multiple versions of the same binary, for example for testing or rollback.
|
/// possible to have multiple versions of the same binary, for example for testing or rollback.
|
||||||
///
|
///
|
||||||
/// Pass this flag to disable this behavior.
|
/// Pass this flag to disable this behavior.
|
||||||
#[clap(long)]
|
#[clap(long)]
|
||||||
no_symlinks: bool,
|
no_symlinks: bool,
|
||||||
|
@ -69,7 +69,7 @@ struct Options {
|
||||||
no_cleanup: bool,
|
no_cleanup: bool,
|
||||||
|
|
||||||
/// Override manifest source.
|
/// Override manifest source.
|
||||||
///
|
///
|
||||||
/// This skips searching crates.io for a manifest and uses the specified path directly, useful
|
/// This skips searching crates.io for a manifest and uses the specified path directly, useful
|
||||||
/// for debugging and when adding Binstall support. This must be the path to the folder
|
/// for debugging and when adding Binstall support. This must be the path to the folder
|
||||||
/// containing a Cargo.toml file, not the Cargo.toml file itself.
|
/// containing a Cargo.toml file, not the Cargo.toml file itself.
|
||||||
|
@ -77,7 +77,7 @@ struct Options {
|
||||||
manifest_path: Option<PathBuf>,
|
manifest_path: Option<PathBuf>,
|
||||||
|
|
||||||
/// Utility log level
|
/// Utility log level
|
||||||
///
|
///
|
||||||
/// Set to `debug` when submitting a bug report.
|
/// Set to `debug` when submitting a bug report.
|
||||||
#[clap(long, default_value = "info")]
|
#[clap(long, default_value = "info")]
|
||||||
log_level: LevelFilter,
|
log_level: LevelFilter,
|
||||||
|
|
Loading…
Add table
Reference in a new issue