revert unintentional code changes in 89c67d9c34

This commit is contained in:
Caelan Sayler
2025-03-02 22:17:43 +00:00
parent 100c56465e
commit 1107c305a2

View File

@@ -45,10 +45,10 @@ fn root_command() -> Command {
// Reason being is clap.ignore_errors(true) is not 100%, and sometimes old args can trip things up.
.arg(arg!(--forceLatest "Legacy argument").hide(true).global(true))
.arg(arg!(-r --restart "Legacy argument").hide(true).global(true))
.arg(arg!(--nocolor "Legacy argument").hide(true).global(true));
// .ignore_errors(true)
// .disable_help_subcommand(true)
// .flatten_help(true);
.arg(arg!(--nocolor "Legacy argument").hide(true).global(true))
.ignore_errors(true)
.disable_help_subcommand(true)
.flatten_help(true);
#[cfg(target_os = "windows")]
let cmd = cmd.subcommand(Command::new("uninstall")
@@ -135,7 +135,6 @@ fn main() -> Result<()> {
let desired_log_file = log_file.cloned().unwrap_or(locator::default_log_location(LocationContext::IAmUpdateExe));
logging::setup_logging("update", Some(&desired_log_file), true, verbose)?;
warn!("This is a warning message");
// change working directory to the parent directory of the exe
let mut containing_dir = env::current_exe()?;
containing_dir.pop();