diff --git a/cmd/camget/camget.go b/cmd/camget/camget.go index f7a88abee..9d7f1ac43 100644 --- a/cmd/camget/camget.go +++ b/cmd/camget/camget.go @@ -58,6 +58,10 @@ func main() { client.AddFlags() flag.Parse() + if *cmdmain.FlagHelp { + flag.PrintDefaults() + } + if *flagVersion { fmt.Fprintf(os.Stderr, "camget version: %s\n", buildinfo.Version()) return diff --git a/cmd/cammount/cammount.go b/cmd/cammount/cammount.go index 23efdd9c6..a89775df1 100644 --- a/cmd/cammount/cammount.go +++ b/cmd/cammount/cammount.go @@ -70,6 +70,10 @@ func main() { return } + if *cmdmain.FlagHelp { + usage() + } + narg := flag.NArg() if narg > 2 { usage()