mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-14 14:46:37 +00:00
Fix args parsing: Do no require positional arg if --self-install is present
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
19151adc62
commit
53da569445
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ pub struct Args {
|
|||
#[clap(
|
||||
help_heading = "Package selection",
|
||||
value_name = "crate[@version]",
|
||||
required_unless_present_any = ["version", "help"],
|
||||
required_unless_present_any = ["version", "self_install", "help"],
|
||||
)]
|
||||
pub(crate) crate_names: Vec<CrateName>,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue