Added gitignore. Force command arg to lower

This commit is contained in:
dan
2025-10-21 13:27:52 -04:00
parent 70f36c34c3
commit 6f74f99a4e
2 changed files with 6 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.exe
*.csv

View File

@@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"os" "os"
"strconv" "strconv"
"strings"
) )
func main() { func main() {
@@ -13,6 +14,7 @@ func main() {
fmt.Println("Use godo ? or help for the help menu") fmt.Println("Use godo ? or help for the help menu")
os.Exit(0) os.Exit(0)
} }
args[1] = strings.ToLower(args[1])
switch args[1] { switch args[1] {
case "?", "help": case "?", "help":
@@ -23,6 +25,8 @@ func main() {
list() list()
case "d", "delete": case "d", "delete":
delete(args[2]) delete(args[2])
default:
help()
} }
} }