From 4077bfa060107fcff31d99b45cae532db44744e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Stuczy=C5=84ski?= Date: Tue, 27 Feb 2024 08:49:35 +0000 Subject: [PATCH] added env flags to 'run' --- mixnode/src/commands/run.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/mixnode/src/commands/run.rs b/mixnode/src/commands/run.rs index c2ee721d89..b19cb4ed0e 100644 --- a/mixnode/src/commands/run.rs +++ b/mixnode/src/commands/run.rs @@ -20,24 +20,24 @@ pub(crate) struct Run { id: String, /// The custom host on which the mixnode will be running - #[clap(long, alias = "host")] + #[clap(long, alias = "host", env = MIXNODE_LISTENING_ADDRESS_ARG)] listening_address: Option, /// The port on which the mixnode will be listening for mix packets - #[clap(long)] + #[clap(long, env = MIXNODE_MIX_PORT_ARG)] mix_port: Option, /// The port on which the mixnode will be listening for verloc packets - #[clap(long)] + #[clap(long, env = MIXNODE_VERLOC_PORT_ARG)] verloc_port: Option, /// The port on which the mixnode will be listening for http requests - #[clap(long)] + #[clap(long, env = MIXNODE_HTTP_API_PORT_ARG)] http_api_port: Option, /// Comma separated list of nym-api endpoints of the validators // the alias here is included for backwards compatibility (1.1.4 and before) - #[clap(long, alias = "validators", value_delimiter = ',')] + #[clap(long, alias = "validators", value_delimiter = ',', env = MIXNODE_NYM_APIS_ARG)] nym_apis: Option>, #[clap(short, long, default_value_t = OutputFormat::default(), env = MIXNODE_OUTPUT_ARG)]