From 8b52baf3ecacbe79c6a18d5e2c77352e891f4f2b Mon Sep 17 00:00:00 2001 From: zhouhao Date: Fri, 24 Mar 2017 17:23:55 +0800 Subject: [PATCH] main: restore more help information Signed-off-by: zhouhao --- cmd/oci-image-tool/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/oci-image-tool/main.go b/cmd/oci-image-tool/main.go index f8b44f1..09e2e7c 100644 --- a/cmd/oci-image-tool/main.go +++ b/cmd/oci-image-tool/main.go @@ -18,6 +18,7 @@ import ( "fmt" "os" + "github.com/opencontainers/image-tools/image" "github.com/opencontainers/image-tools/version" "github.com/sirupsen/logrus" "github.com/urfave/cli" @@ -54,6 +55,11 @@ func main() { createCommand, } + cli.AppHelpTemplate = fmt.Sprintf(`%sMore information: + references %s + bug report %s + `, cli.AppHelpTemplate, image.SpecURL, image.IssuesURL) + if err := app.Run(os.Args); err != nil { logrus.Fatal(err) }