Skip to content

Commit

Permalink
terminate the process when receiving --restore_default CLI argument
Browse files Browse the repository at this point in the history
  • Loading branch information
GyulyVGC committed Dec 5, 2024
1 parent 2b02446 commit 1e047fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub struct Args {
#[arg(short, long, exclusive = true)]
pub logs: bool,
/// Restore default settings
#[arg(short, long)]
#[arg(short, long, exclusive = true)]
restore_default: bool,
}

Expand All @@ -40,6 +40,7 @@ pub fn handle_cli_args(args: Args) -> Task<Message> {

if args.restore_default {
Configs::default().store();
std::process::exit(0);
}

let mut boot_task_chain = window::get_latest().map(Message::WindowId);
Expand Down

0 comments on commit 1e047fc

Please sign in to comment.