Skip to content

Commit

Permalink
ReadFlashArgs as cloneable
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjperez committed May 10, 2024
1 parent 0e4e57e commit c01779c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions espflash/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ pub struct PartitionTableArgs {
}

/// Reads the content of flash memory and saves it to a file
#[derive(Debug, Args)]
#[derive(Debug, Clone, Args)]
#[non_exhaustive]
pub struct ReadFlashArgs {
/// Offset to start reading from
Expand All @@ -200,7 +200,7 @@ pub struct ReadFlashArgs {
pub block_size: u32,
/// Connection configuration
#[clap(flatten)]
connect_args: ConnectArgs,
pub connect_args: ConnectArgs,
/// Size of the region to read
#[arg(value_name = "SIZE", value_parser = parse_uint32)]
pub size: u32,
Expand Down

0 comments on commit c01779c

Please sign in to comment.