Skip to content

Commit 89d8836

Browse files
bjoernQjessebraham
authored andcommitted
Support ESPFLASH_BAUD env var
1 parent 6419e34 commit 89d8836

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

espflash/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ addr2line = { version = "0.19.0", optional = true }
3939
base64 = "0.13.1"
4040
binread = "2.2.0"
4141
bytemuck = { version = "1.12.3", features = ["derive"] }
42-
clap = { version = "4.0.29", features = ["derive"], optional = true }
42+
clap = { version = "4.0.29", features = ["derive", "env"], optional = true }
4343
comfy-table = { version = "6.1.3", optional = true }
4444
crossterm = { version = "0.25.0", optional = true }
4545
dialoguer = { version = "0.10.2", optional = true }

espflash/src/cli/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub use clap_enum_variants;
6363
#[derive(Debug, Args)]
6464
pub struct ConnectArgs {
6565
/// Baud rate at which to communicate with target device
66-
#[arg(short = 'b', long)]
66+
#[arg(short = 'b', long, env = "ESPFLASH_BAUD")]
6767
pub baud: Option<u32>,
6868
/// Serial port connected to target device
6969
#[arg(short = 'p', long)]

0 commit comments

Comments
 (0)