We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d47af5 commit 5a7a6f9Copy full SHA for 5a7a6f9
cargo-espflash/src/main.rs
@@ -84,6 +84,9 @@ pub struct BuildOpts {
84
/// Example to build and flash
85
#[clap(long)]
86
pub example: Option<String>,
87
+ /// Binary to build and flash
88
+ #[clap(long)]
89
+ pub bin: Option<String>,
90
/// Specify a (binary) package within a workspace to be built
91
92
pub package: Option<String>,
@@ -293,6 +296,11 @@ fn build(
293
296
args.push(example.to_string());
294
297
}
295
298
299
+ if let Some(bin) = &build_options.bin {
300
+ args.push("--bin".to_string());
301
+ args.push(bin.to_string());
302
+ }
303
+
304
if let Some(package) = &build_options.package {
305
args.push("--package".to_string());
306
args.push(package.to_string());
0 commit comments