Skip to content

Commit 8f1e2cb

Browse files
committed
Reverse the image/file arguments for save-image to allow it to be used as a Cargo runner
1 parent 9d8f90c commit 8f1e2cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

espflash/src/main.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,14 @@ struct SaveImageArgs {
6060
/// Image format to flash
6161
#[clap(long, possible_values = ImageFormatType::VARIANTS)]
6262
format: Option<String>,
63-
/// ELF image to flash
64-
image: PathBuf,
6563

6664
#[clap(flatten)]
6765
pub flash_config_args: FlashConfigArgs,
6866
#[clap(flatten)]
6967
save_image_args: BaseSaveImageArgs,
68+
69+
/// ELF image to flash
70+
image: PathBuf,
7071
}
7172

7273
/// Writes a binary file to a specific address in the chip's flash

0 commit comments

Comments
 (0)