diff --git a/src/bin/juliaup.rs b/src/bin/juliaup.rs index 8c2b45bc..5fcf6b7c 100644 --- a/src/bin/juliaup.rs +++ b/src/bin/juliaup.rs @@ -148,9 +148,9 @@ enum ConfigSubCmd { /// New value value: Option, }, - #[clap(name = "checkchannelupdate")] + #[clap(name = "checkchanneluptodate")] /// Check for updates to the default channel on startup - ShouldCheckChannelUpdate { + ShouldCheckChannelUptodate { /// New Value value: Option, }, @@ -207,7 +207,7 @@ fn main() -> Result<()> { ConfigSubCmd::VersionsDbUpdateInterval { value } => { run_command_config_versionsdbupdate(value, false, &paths) } - ConfigSubCmd::ShouldCheckChannelUpdate { value } => { + ConfigSubCmd::ShouldCheckChannelUptodate { value } => { run_command_config_checkchanneluptodate(value, false, &paths) } }, diff --git a/src/command_config_checkchanneluptodate.rs b/src/command_config_checkchanneluptodate.rs index 0acb048f..e2f9f257 100644 --- a/src/command_config_checkchanneluptodate.rs +++ b/src/command_config_checkchanneluptodate.rs @@ -25,9 +25,9 @@ pub fn run_command_config_checkchanneluptodate( if !quiet { if value_changed { - eprintln!("Property 'checkchannelupdate' set to '{}'", value); + eprintln!("Property 'checkchanneluptodate' set to '{}'", value); } else { - eprintln!("Property 'checkchannelupdate' is already set to '{}'", value); + eprintln!("Property 'checkchanneluptodate' is already set to '{}'", value); } } } @@ -37,7 +37,7 @@ pub fn run_command_config_checkchanneluptodate( if !quiet { eprintln!( - "Property 'checkchannelupdate' set to '{}'", + "Property 'checkchanneluptodate' set to '{}'", config_file.data.settings.should_check_channel_uptodate ); }