Skip to content

Commit

Permalink
feat(sozo): make few argument global (#2029)
Browse files Browse the repository at this point in the history
* make profile arguments global

* make offline flag global
  • Loading branch information
lambda-0x authored Jun 5, 2024
1 parent d9c4f4f commit 9e25713
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bin/sozo/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct SozoArgs {

#[arg(long)]
#[arg(env = "SOZO_OFFLINE")]
#[arg(hide_short_help = true)]
#[arg(hide_short_help = true, global = true)]
#[arg(help = "Run without accessing the network.")]
pub offline: bool,

Expand Down Expand Up @@ -70,15 +70,15 @@ impl SozoArgs {
#[derive(Parser, Clone, Debug)]
#[group(multiple = false)]
pub struct ProfileSpec {
#[arg(short = 'P', long)]
#[arg(short = 'P', long, global = true)]
#[arg(help = "Specify profile to use by name.")]
pub profile: Option<SmolStr>,

#[arg(long, hide_short_help = true)]
#[arg(long, hide_short_help = true, global = true)]
#[arg(help = "Use release profile.")]
pub release: bool,

#[arg(long, hide_short_help = true)]
#[arg(long, hide_short_help = true, global = true)]
#[arg(help = "Use dev profile.")]
pub dev: bool,
}
Expand Down

0 comments on commit 9e25713

Please sign in to comment.