spogulis no
https://github.com/quitesimpleorg/hs9001.git
synced 2025-03-16 04:03:31 +01:00
Fix off-by-one in CLI
Šī revīzija ir iekļauta:
vecāks
b02911c9b4
revīzija
305e4300cc
2
main.go
2
main.go
@ -143,7 +143,7 @@ func main() {
|
|||||||
searchCmd := flag.NewFlagSet("search", flag.ExitOnError)
|
searchCmd := flag.NewFlagSet("search", flag.ExitOnError)
|
||||||
deleteCmd := flag.NewFlagSet("delete", flag.ExitOnError)
|
deleteCmd := flag.NewFlagSet("delete", flag.ExitOnError)
|
||||||
|
|
||||||
if len(os.Args) < 1 {
|
if len(os.Args) < 2 {
|
||||||
printUsage()
|
printUsage()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Notiek ielāde…
x
Atsaukties uz šo jaunā problēmā
Block a user