From f1ed0b2ecb8b40641a0fcff93d9eeb513eeee30b Mon Sep 17 00:00:00 2001 From: calfzhou Date: Fri, 11 Nov 2022 13:52:58 +0800 Subject: [PATCH] Support reading remote server address from an environment variable (#45) (#46) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ca17c3a..c913d84 100644 --- a/src/main.rs +++ b/src/main.rs @@ -22,7 +22,7 @@ enum Command { local_host: String, /// Address of the remote server to expose local ports to. - #[clap(short, long)] + #[clap(short, long, env = "BORE_SERVER")] to: String, /// Optional port on the remote server to select.