Skip to content

Commit

Permalink
Remove support of env vars in executor binary
Browse files Browse the repository at this point in the history
  • Loading branch information
slowli committed Oct 27, 2023
1 parent 8d610d6 commit ae14d09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ assert_matches = "1.5.0"
async-trait = "0.1.71"
bit-vec = "0.6"
blst = "0.3.10"
clap = { version = "4.3.3", features = ["derive", "env"] }
clap = { version = "4.3.3", features = ["derive"] }
ed25519-dalek = { version = "2.0.0", features = ["serde", "rand_core"] }
futures = "0.3.28"
hex = "0.4.3"
Expand Down
6 changes: 3 additions & 3 deletions node/tools/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ struct Args {
ci_mode: bool,
/// Path to a validator key file. If set to an empty string, validator key will not be read
/// (i.e., a node will be initialized as a non-validator node).
#[arg(long, env = "VALIDATOR_KEY", default_value = "validator_key")]
#[arg(long, default_value = "validator_key")]
validator_key: PathBuf,
/// Path to a JSON file with node configuration.
#[arg(long, env = "CONFIG_FILE", default_value = "config.json")]
#[arg(long, default_value = "config.json")]
config_file: PathBuf,
/// Path to a node key file.
#[arg(long, env = "NODE_KEY", default_value = "node_key")]
#[arg(long, default_value = "node_key")]
node_key: PathBuf,
}

Expand Down

0 comments on commit ae14d09

Please sign in to comment.