Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make global arguments... global. #1510

Merged
merged 4 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cmd/soroban-cli/src/commands/global.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@ pub struct Args {
pub locator: config::locator::Args,

/// Filter logs output. To turn on `stellar_cli::log::footprint=debug` or off `=off`. Can also use env var `RUST_LOG`.
#[arg(long, short = 'f')]
#[arg(long, short = 'f', global = true)]
pub filter_logs: Vec<String>,

/// Do not write logs to stderr including `INFO`
#[arg(long, short = 'q')]
#[arg(long, short = 'q', global = true)]
pub quiet: bool,

/// Log DEBUG events
#[arg(long, short = 'v')]
#[arg(long, short = 'v', global = true)]
pub verbose: bool,

/// Log DEBUG and TRACE events
#[arg(long, visible_alias = "vv")]
#[arg(long, visible_alias = "vv", global = true)]
pub very_verbose: bool,

/// List installed plugins. E.g. `stellar-hello`
#[arg(long)]
pub list: bool,

/// Do not cache your simulations and transactions
#[arg(long, env = "STELLAR_NO_CACHE")]
#[arg(long, env = "STELLAR_NO_CACHE", global = true)]
pub no_cache: bool,
}

Expand Down
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/config/locator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ pub enum Error {
#[group(skip)]
pub struct Args {
/// Use global config
#[arg(long)]
#[arg(long, global = true)]
fnando marked this conversation as resolved.
Show resolved Hide resolved
pub global: bool,

/// Location of config directory, default is "."
#[arg(long)]
#[arg(long, global = true)]
pub config_dir: Option<PathBuf>,
}

Expand Down
Loading