From a6aa46720af1096194106bf1008af776e2e57aac Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Fri, 29 Jan 2016 07:08:21 -0800 Subject: [PATCH] dm: set flag.Usage to usage Now when `--help` is called we get all of the subcommands listed too. --- dm/dm.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dm/dm.go b/dm/dm.go index 152e792dc..ebed53b6f 100644 --- a/dm/dm.go +++ b/dm/dm.go @@ -120,6 +120,10 @@ func getGithubCredential() *common.RegistryCredential { return nil } +func init() { + flag.Usage = usage +} + func main() { defer func() { result := recover()