Skip to content

Commit

Permalink
Remove release flag.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjudson committed Apr 5, 2024
1 parent 906fd77 commit 91a691a
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 34 deletions.
8 changes: 1 addition & 7 deletions tools/src/command/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,12 @@ use crate::{command::public_params::setup_params, LOG_TARGET};

pub fn handle_command(args: ProveArgs) -> anyhow::Result<()> {
let ProveArgs {
common_args: CommonProveArgs { release, profile, bin },
common_args: CommonProveArgs { profile, bin },
network,
url,
local_args,
} = args;

let profile = if release {
"release".to_string()
} else {
profile
};

let path = path_to_artifact(bin, &profile)?;
let vm_config = vm_config::VmConfig::from_env()?;

Expand Down
7 changes: 1 addition & 6 deletions tools/src/command/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ use nexus_tools_dev::{
};

pub fn handle_command(args: RunArgs) -> anyhow::Result<()> {
let RunArgs { verbose, release, profile, bin } = args;
let profile = if release {
"release".to_string()
} else {
profile
};
let RunArgs { verbose, profile, bin } = args;

run_vm(bin, verbose, &profile)
}
Expand Down
4 changes: 0 additions & 4 deletions tools/tools-dev/src/command/common/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@ pub struct LocalProveArgs {

#[derive(Debug, Args)]
pub struct CommonProveArgs {
/// Build artifacts with the release profile. Equivalent to "--profile release".
#[arg(short, name = "r", conflicts_with = "profile")]
pub release: bool,

/// Build artifacts with the specified profile. "release-unoptimized" is default.
#[arg(long, default_value = "release-unoptimized")]
pub profile: String,
Expand Down
4 changes: 0 additions & 4 deletions tools/tools-dev/src/command/common/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ pub struct RunArgs {
#[arg(short)]
pub verbose: bool,

/// Build artifacts with the release profile. Equivalent to "--profile release".
#[arg(short, name = "r", conflicts_with = "profile")]
pub release: bool,

/// Build artifacts with the specified profile. "dev" is default.
#[arg(long, default_value = "dev")]
pub profile: String,
Expand Down
8 changes: 1 addition & 7 deletions tools/tools-dev/src/command/dev/common_impl/prove.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,12 @@ use crate::{

pub fn handle_command(args: ProveArgs) -> anyhow::Result<()> {
let ProveArgs {
common_args: CommonProveArgs { release, profile, bin },
common_args: CommonProveArgs { profile, bin },
network,
url,
local_args,
} = args;

let profile = if release {
"release".to_string()
} else {
profile
};

// make sure configs are compiled
compile_env_configs(false)?;
let vm_config = VmConfig::from_env()?;
Expand Down
7 changes: 1 addition & 6 deletions tools/tools-dev/src/command/dev/common_impl/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ use crate::{
};

pub fn handle_command(args: RunArgs) -> anyhow::Result<()> {
let RunArgs { verbose, release, profile, bin } = args;
let profile = if release {
"release".to_string()
} else {
profile
};
let RunArgs { verbose, profile, bin } = args;

run_vm(bin, verbose, &profile)
}
Expand Down

0 comments on commit 91a691a

Please sign in to comment.