From 7fc60ba8d1428fe6967464ae9f4c6d7a06d3419c Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 15 Jul 2024 02:21:47 +0530 Subject: [PATCH] Optimized code, -include flag along with -verbose and -dryrun modes --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index 462c31c..b6145f3 100644 --- a/main.go +++ b/main.go @@ -17,7 +17,7 @@ func main() { name := flag.String("name", "", "The user's name") dir := flag.String("dir", "", "The directory to organize") - info := flag.Bool("info", false, "Show information about fidy") + help := flag.Bool("help", false, "Show information about fidy") include := flag.String("include", "", "Comma-separated list of extensions to include") exclude := flag.String("exclude", "", "Comma-separated list of extensions to exclude") verbose := flag.Bool("verbose", false, "Enable verbose output") @@ -53,7 +53,7 @@ func main() { } } - if *info { + if *help { fmt.Println("\n---------- Fidy - The File Organizer CLI Tool ----------") fmt.Println("\nFidy helps you organize your files by sorting them into directories based on their extensions.") fmt.Println("\nUsage:")