Skip to content

Commit

Permalink
Merge pull request #28407 from ProvableHQ/args
Browse files Browse the repository at this point in the history
More cli fixes.
  • Loading branch information
d0cd authored Oct 20, 2024
2 parents 86783da + 13c145b commit 2fb29aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion leo/cli/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ enum Commands {
#[clap(about = "Create a new Leo example package in a new directory")]
Example {
#[clap(flatten)]
command: Example,
command: LeoExample,
},
#[clap(about = "Run a program with input variables")]
Run {
Expand Down
4 changes: 2 additions & 2 deletions leo/cli/commands/example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use std::fs;

/// Initialize a new Leo example.
#[derive(Parser, Debug)]
pub struct Example {
pub struct LeoExample {
#[clap(name = "NAME", help = "The example to initialize.")]
pub(crate) name: String,
#[clap(short = 'n', long, help = "Name of the network to use", default_value = "testnet")]
Expand All @@ -34,7 +34,7 @@ pub struct Example {
pub(crate) endpoint: String,
}

impl Command for Example {
impl Command for LeoExample {
type Input = <LeoNew as Command>::Output;
type Output = ();

Expand Down
4 changes: 2 additions & 2 deletions leo/cli/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub mod deploy;
pub use deploy::Deploy;

pub mod example;
pub use example::Example;
pub use example::LeoExample;

pub mod execute;
pub use execute::LeoExecute;
Expand Down Expand Up @@ -208,7 +208,7 @@ impl Default for BuildOptions {
pub struct FeeOptions {
#[clap(short, long, help = "Don't ask for confirmation.", default_value = "false")]
pub(crate) yes: bool,
#[clap(short, long, help = "Performs a dry-run of transaction generation")]
#[clap(long, help = "Performs a dry-run of transaction generation")]
pub(crate) dry_run: bool,
#[clap(long, help = "Priority fee in microcredits. Defaults to 0.", default_value = "0")]
pub(crate) priority_fee: u64,
Expand Down

0 comments on commit 2fb29aa

Please sign in to comment.