Skip to content

Commit 59a4bf0

Browse files
SergioGasquezjessebraham
authored andcommitted
fix: Require --elf arg for --log-format arg in monitor subcommand
1 parent 505b98c commit 59a4bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

espflash/src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pub struct MonitorArgs {
203203
#[arg(short = 'e', long, value_name = "FILE")]
204204
elf: Option<PathBuf>,
205205
/// Logging format.
206-
#[arg(long, short = 'L', default_value = "serial")]
206+
#[arg(long, short = 'L', default_value = "serial", requires = "elf")]
207207
pub log_format: LogFormat,
208208
}
209209

0 commit comments

Comments
 (0)