mirror of
https://github.com/esp-rs/espflash.git
synced 2026-03-24 16:20:21 +00:00
Reverse the image/file arguments for save-image to allow it to be used as a Cargo runner
This commit is contained in:
@@ -60,13 +60,14 @@ struct SaveImageArgs {
|
||||
/// Image format to flash
|
||||
#[clap(long, possible_values = ImageFormatType::VARIANTS)]
|
||||
format: Option<String>,
|
||||
/// ELF image to flash
|
||||
image: PathBuf,
|
||||
|
||||
#[clap(flatten)]
|
||||
pub flash_config_args: FlashConfigArgs,
|
||||
#[clap(flatten)]
|
||||
save_image_args: BaseSaveImageArgs,
|
||||
|
||||
/// ELF image to flash
|
||||
image: PathBuf,
|
||||
}
|
||||
|
||||
/// Writes a binary file to a specific address in the chip's flash
|
||||
|
||||
Reference in New Issue
Block a user