Added --help hint to default usage message

main
diff 2020-11-13 07:11:13 +00:00
parent 8383b65de4
commit accda949e1
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func main() {
fmt.Fprintf(os.Stderr, "Could not get: %v", err) fmt.Fprintf(os.Stderr, "Could not get: %v", err)
} }
default: default:
fmt.Printf("Usage:\n\t%v <set|get>\n", os.Args[0]) fmt.Printf("Usage:\n\t%v <set|get> [--help]\n", os.Args[0])
flag.PrintDefaults() flag.PrintDefaults()
} }
} }