Added gitignore. Force command arg to lower
This commit is contained in:
4
godo.go
4
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()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user