diff --git a/leo/commands/mod.rs b/leo/commands/mod.rs index f59db22864..44b9e9945c 100644 --- a/leo/commands/mod.rs +++ b/leo/commands/mod.rs @@ -52,7 +52,7 @@ pub mod test; pub use test::Test; pub mod update; -pub use update::{Sub as UpdateAutomatic, Update}; +pub use update::{Automatic as UpdateAutomatic, Update}; pub mod watch; pub use watch::Watch; diff --git a/leo/commands/update.rs b/leo/commands/update.rs index 09e0ca640a..3179a37b99 100644 --- a/leo/commands/update.rs +++ b/leo/commands/update.rs @@ -22,7 +22,7 @@ use tracing::span::Span; /// Setting for automatic updates of Leo #[derive(Debug, StructOpt, PartialEq)] -pub enum Sub { +pub enum Automatic { Automatic { #[structopt(name = "bool", help = "Boolean value: true or false", parse(try_from_str))] value: bool, @@ -43,11 +43,11 @@ pub struct Update { /// Setting for automatic updates of Leo #[structopt(subcommand)] - automatic: Option, + automatic: Option, } impl Update { - pub fn new(list: bool, studio: bool, automatic: Option) -> Update { + pub fn new(list: bool, studio: bool, automatic: Option) -> Update { Update { list, studio, @@ -75,7 +75,7 @@ impl Command for Update { } // in case automatic subcommand was called - if let Some(Sub::Automatic { value }) = self.automatic { + if let Some(Automatic::Automatic { value }) = self.automatic { Config::set_update_automatic(value)?; match value {