Skip to content

Commit db21b15

Browse files
author
Ma Shimiao
authored
Merge pull request #131 from q384566678/help-test
main: restore more help information
2 parents f1c9348 + 8b52baf commit db21b15

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
@@ -18,6 +18,7 @@ import (
1818
"fmt"
1919
"os"
2020

21+
"github.com/opencontainers/image-tools/image"
2122
"github.com/opencontainers/image-tools/version"
2223
"github.com/sirupsen/logrus"
2324
"github.com/urfave/cli"
@@ -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)