Reverse the image/file arguments for save-image to allow it to be used as a Cargo runner

This commit is contained in:
Jesse Braham
2022-09-15 12:15:01 -07:00
parent 9d8f90cabc
commit 8f1e2cbfda

View File

@@ -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