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")]