From 443c8e6cc9fa57be74b5c72a0ee16f7b43fd5bfb Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Mon, 11 Mar 2024 18:23:16 -0500 Subject: [PATCH] new: Print some message when flags are set --- src/main.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main.rs b/src/main.rs index 227484f..c854d3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,6 +16,17 @@ async fn main() { let flag_directory = settings["directory"]; let flag_lucky = settings["i-feel-lucky"]; + // Print some message when flags are set. + if flag_dry_run { + println!("Doing a dry run. No files will be modified.") + } + if flag_directory { + println!("Running in directory mode...") + } + if flag_lucky { + println!("Automatically selecting the first entry...") + } + // Try to read config file, or display error let mut config_file = env::var("XDG_CONFIG_HOME").unwrap_or(String::from("$HOME")); if config_file == "$HOME" {