Skip to content

Commit

Permalink
Fix failing CLI test
Browse files Browse the repository at this point in the history
  • Loading branch information
paulhauner committed Mar 21, 2023
1 parent 77a4970 commit 9216bda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions beacon_node/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -960,6 +960,7 @@ pub fn cli_app<'a, 'b>() -> App<'a, 'b> {
.hidden(true)
.help("This flag is deprecated and has no effect.")
.takes_value(true)
.default_value("true")
)
.arg(
Arg::with_name("count-unrealized-full")
Expand Down
2 changes: 1 addition & 1 deletion beacon_node/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ pub fn get_config<E: EthSpec>(
client_config.chain.fork_choice_before_proposal_timeout_ms = timeout;
}

if cli_args.is_present("count-unrealized") {
if clap_utils::parse_required::<bool>(cli_args, "count-unrealized")? == false {
warn!(
log,
"The flag --count-unrealized is deprecated and will be removed";
Expand Down

0 comments on commit 9216bda

Please sign in to comment.