Skip to content

Commit

Permalink
Add ESPFLASH_PORT environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocarnelos authored and jessebraham committed Mar 15, 2023
1 parent 7a67c41 commit 4aa38f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion espflash/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ pub struct ConnectArgs {
#[arg(short = 'b', long, env = "ESPFLASH_BAUD")]
pub baud: Option<u32>,
/// Serial port connected to target device
#[arg(short = 'p', long)]
#[arg(short = 'p', long, env = "ESPFLASH_PORT")]
pub port: Option<String>,
/// DTR pin to use for the internal UART hardware. Uses BCM numbering.
#[cfg(feature = "raspberry")]
Expand Down

0 comments on commit 4aa38f1

Please sign in to comment.