Skip to content

Commit 4254901

Browse files
BarryBootBHouwens
authored andcommitted
add ENV config option for sensible startup variables
1 parent 8a7bea7 commit 4254901

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/bin/node/miner.rs

+5
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ pub fn clap_app<'a, 'b>() -> App<'a, 'b> {
275275
.arg(
276276
Arg::with_name("address_aggregation_limit")
277277
.long("address_aggregation_limit")
278+
.env("ADDRESS_AGGREGATION_LIMIT")
278279
.help("Limit the amount of addresses that can be kept before aggregation is triggered")
279280
.takes_value(true),
280281
)
@@ -288,6 +289,7 @@ pub fn clap_app<'a, 'b>() -> App<'a, 'b> {
288289
.arg(
289290
Arg::with_name("with_user_index")
290291
.long("with_user_index")
292+
.env("WITH_USER_INDEX")
291293
.help("Run the specified user node index from config file")
292294
.takes_value(true),
293295
)
@@ -300,18 +302,21 @@ pub fn clap_app<'a, 'b>() -> App<'a, 'b> {
300302
.arg(
301303
Arg::with_name("passphrase")
302304
.long("passphrase")
305+
.env("PASSPHRASE")
303306
.help("Enter a password or passphase for the encryption of the Wallet.")
304307
.takes_value(true),
305308
)
306309
.arg(
307310
Arg::with_name("address")
308311
.long("address")
312+
.env("ADDRESS")
309313
.help("Run node index at the given address")
310314
.takes_value(true),
311315
)
312316
.arg(
313317
Arg::with_name("with_user_address")
314318
.long("with_user_address")
319+
.env("WITH_USER_ADDRESS")
315320
.help("Run the specified user node index from config file")
316321
.takes_value(true),
317322
)

0 commit comments

Comments
 (0)