Skip to content

Commit

Permalink
Optimized code, -include flag along with -verbose and -dryrun modes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmit0920 committed Jul 14, 2024
1 parent cb4725a commit 7fc60ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:")
Expand Down

0 comments on commit 7fc60ba

Please sign in to comment.