From 9eaeafb129492e063652539027f675287e54289c Mon Sep 17 00:00:00 2001 From: Matteo Carnelos Date: Wed, 15 Mar 2023 11:47:52 +0100 Subject: [PATCH] Add `ESPFLASH_PORT` environment variable --- espflash/src/cli/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/espflash/src/cli/mod.rs b/espflash/src/cli/mod.rs index d0b278aa..0bd8be0f 100644 --- a/espflash/src/cli/mod.rs +++ b/espflash/src/cli/mod.rs @@ -44,7 +44,7 @@ pub struct ConnectArgs { #[arg(short = 'b', long, env = "ESPFLASH_BAUD")] pub baud: Option, /// Serial port connected to target device - #[arg(short = 'p', long)] + #[arg(short = 'p', long, env = "ESPFLASH_PORT")] pub port: Option, /// DTR pin to use for the internal UART hardware. Uses BCM numbering. #[cfg(feature = "raspberry")]