1
0
duplikat dari https://github.com/quitesimpleorg/hs9001.git synced 2024-11-25 15:12:36 +01:00

Fix off-by-one in CLI

This commit is contained in:
lawl 2021-04-05 10:43:54 +02:00
orang tua b02911c9b4
melakukan 305e4300cc

Melihat File

@ -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
} }