diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..971545c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.exe +*.csv \ No newline at end of file diff --git a/godo.go b/godo.go index 0c06a36..fd93fd5 100644 --- a/godo.go +++ b/godo.go @@ -5,6 +5,7 @@ import ( "fmt" "os" "strconv" + "strings" ) func main() { @@ -13,6 +14,7 @@ func main() { fmt.Println("Use godo ? or help for the help menu") os.Exit(0) } + args[1] = strings.ToLower(args[1]) switch args[1] { case "?", "help": @@ -23,6 +25,8 @@ func main() { list() case "d", "delete": delete(args[2]) + default: + help() } }