mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-20 20:48:43 +00:00
Merge pull request #245 from NobodyXu/fix/help
Print out help when `crate_names` is empty
This commit is contained in:
commit
8183bc2cf3
1 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@ use std::{
|
|||
time::{Duration, Instant},
|
||||
};
|
||||
|
||||
use clap::Parser;
|
||||
use clap::{AppSettings, Parser};
|
||||
use log::{debug, error, info, warn, LevelFilter};
|
||||
use miette::{miette, Result, WrapErr};
|
||||
use simplelog::{ColorChoice, ConfigBuilder, TermLogger, TerminalMode};
|
||||
|
@ -20,7 +20,7 @@ use cargo_binstall::{binstall, *};
|
|||
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
#[clap(version, about = "Install a Rust binary... from binaries!")]
|
||||
#[clap(version, about = "Install a Rust binary... from binaries!", setting = AppSettings::ArgRequiredElseHelp)]
|
||||
struct Options {
|
||||
/// Package name for installation.
|
||||
///
|
||||
|
|
Loading…
Add table
Reference in a new issue