We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf0de03 commit 1506e90Copy full SHA for 1506e90
sugondat-shim/src/cli.rs
@@ -11,6 +11,10 @@ struct Cli {
11
command: Commands,
12
}
13
14
+/// The environment variable used to override the default port to listen to when serving or to
15
+/// connect to when running RPCs.
16
+const SUGONDAT_SHIM_PORT_ENV: &str = "SUGONDAT_SHIM_PORT";
17
+
18
/// Common parameters for the adapter subcommands.
19
///
20
/// It's not declared on the `Cli` struct with `clap(flatten)` because of how the syntax
@@ -25,7 +29,7 @@ pub struct AdapterServerParams {
25
29
#[clap(
26
30
short,
27
31
long,
28
- env = "SUGONDAT_SHIM_PORT",
32
+ env = SUGONDAT_SHIM_PORT_ENV,
33
default_value = "10995",
34
group = "listen"
35
)]
0 commit comments