From 8f1e2cbfdaf792125bd2dea76d440edbbd7d2f38 Mon Sep 17 00:00:00 2001 From: Jesse Braham Date: Thu, 15 Sep 2022 12:15:01 -0700 Subject: [PATCH] Reverse the image/file arguments for save-image to allow it to be used as a Cargo runner --- espflash/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/espflash/src/main.rs b/espflash/src/main.rs index 7d83c30..e4d4750 100644 --- a/espflash/src/main.rs +++ b/espflash/src/main.rs @@ -60,13 +60,14 @@ struct SaveImageArgs { /// Image format to flash #[clap(long, possible_values = ImageFormatType::VARIANTS)] format: Option, - /// 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