Skip to content

Commit 0c63abf

Browse files
committed
Add requires info to some args, fix a build error
1 parent e82c7de commit 0c63abf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cargo-espflash/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ fn build(
254254
// may not be immediately clear to the user.
255255
let cfg_has_build_std = cargo_config.has_build_std();
256256
let opts_has_build_std = build_options
257-
.clone()
258257
.unstable
258+
.clone()
259259
.map(|ref v| v.iter().any(|s| s.contains("build-std")))
260260
.unwrap_or_default();
261261
let xtensa_target = target.starts_with("xtensa-");

espflash/src/cli/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,10 @@ pub struct SaveImageArgs {
113113
#[clap(long)]
114114
pub merge: bool,
115115
/// Custom partition table for merging
116-
#[clap(long)]
116+
#[clap(long, short = 'T', requires = "merge")]
117117
pub partition_table: Option<PathBuf>,
118118
/// Don't pad the image to the flash size
119-
#[clap(long)]
119+
#[clap(long, short = 'P', requires = "merge")]
120120
pub skip_padding: bool,
121121
}
122122

0 commit comments

Comments
 (0)