Skip to content

Commit

Permalink
Change default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
matias-gonz committed Aug 7, 2024
1 parent 2d969dd commit e73131b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::messages::{MSG_OBSERVABILITY_HELP, MSG_OBSERVABILITY_RUN_PROMPT};

#[derive(Debug, Parser)]
pub struct ContainersArgs {
#[clap(long, short = 'o', help = MSG_OBSERVABILITY_HELP, default_missing_value = "true", num_args = 0..=1)]
#[clap(long, short = 'o', help = MSG_OBSERVABILITY_HELP, default_missing_value = "false", num_args = 0..=1)]
pub observability: Option<bool>,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub struct EcosystemInitArgs {
pub genesis_args: GenesisArgs,
#[clap(long, help = MSG_DEV_ARG_HELP)]
pub dev: bool,
#[clap(long, short = 'o', help = MSG_OBSERVABILITY_HELP, default_missing_value = "true", num_args = 0..=1)]
#[clap(long, short = 'o', help = MSG_OBSERVABILITY_HELP, default_missing_value = "false", num_args = 0..=1)]
pub observability: Option<bool>,
}

Expand All @@ -113,7 +113,7 @@ impl EcosystemInitArgs {
};
let ecosystem = self.ecosystem.fill_values_with_prompt(l1_network, self.dev);
let observability = if self.dev {
true
false
} else {
self.observability.unwrap_or_else(|| {
PromptConfirm::new(MSG_OBSERVABILITY_PROMPT)
Expand Down

0 comments on commit e73131b

Please sign in to comment.