diff --git a/CHANGELOG.md b/CHANGELOG.md index 99a09c1..a6635f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Explicitly set `bin_name` attribute for `cargo-espflash` (#432) + ### Changed ### Removed diff --git a/cargo-espflash/README.md b/cargo-espflash/README.md index 133a40a..6e60886 100644 --- a/cargo-espflash/README.md +++ b/cargo-espflash/README.md @@ -60,7 +60,7 @@ cargo install cargo-espflash --features=raspberry ```text Cargo subcommand for flashing Espressif devices -Usage: cargo-espflash espflash +Usage: cargo espflash Commands: board-info Establish a connection with a target device diff --git a/cargo-espflash/src/main.rs b/cargo-espflash/src/main.rs index 4176f0a..4bb0d90 100644 --- a/cargo-espflash/src/main.rs +++ b/cargo-espflash/src/main.rs @@ -32,7 +32,7 @@ mod error; mod package_metadata; #[derive(Debug, Parser)] -#[clap(version, propagate_version = true)] +#[clap(bin_name = "cargo", version, propagate_version = true)] struct Cli { #[clap(subcommand)] subcommand: CargoSubcommand,