Skip to content

Commit 30ef8ea

Browse files
author
zhouhao
committed
main: restore more help information
Signed-off-by: zhouhao <[email protected]>
1 parent bc2102b commit 30ef8ea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/oci-image-tool/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"os"
2020

2121
"github.com/sirupsen/logrus"
22+
"github.com/opencontainers/image-tools/image"
2223
"github.com/opencontainers/image-tools/version"
2324
"github.com/urfave/cli"
2425
)
@@ -54,6 +55,11 @@ func main() {
5455
createCommand,
5556
}
5657

58+
cli.AppHelpTemplate = fmt.Sprintf(`%sMore information:
59+
references %s
60+
bug report %s
61+
`, cli.AppHelpTemplate, image.SpecURL, image.IssuesURL)
62+
5763
if err := app.Run(os.Args); err != nil {
5864
logrus.Fatal(err)
5965
}

0 commit comments

Comments
 (0)