diff --git a/cmd/crane/cmd/list.go b/cmd/crane/cmd/list.go index 76d71a3dc..33957d685 100644 --- a/cmd/crane/cmd/list.go +++ b/cmd/crane/cmd/list.go @@ -40,7 +40,7 @@ func NewCmdList(options *[]crane.Option) *cobra.Command { }, } cmd.Flags().BoolVar(&fullRef, "full-ref", false, "(Optional) if true, print the full image reference") - cmd.Flags().BoolVar(&omitDigestTags, "omit-digest-tags", false, "(Optional), if true, omit digest tags (e.g., ':sha256-...')") + cmd.Flags().BoolVarP(&omitDigestTags, "omit-digest-tags", "O", false, "(Optional), if true, omit digest tags (e.g., ':sha256-...')") return cmd } diff --git a/cmd/crane/doc/crane_ls.md b/cmd/crane/doc/crane_ls.md index 6616820b1..844771da4 100644 --- a/cmd/crane/doc/crane_ls.md +++ b/cmd/crane/doc/crane_ls.md @@ -11,7 +11,7 @@ crane ls REPO [flags] ``` --full-ref (Optional) if true, print the full image reference -h, --help help for ls - --omit-digest-tags (Optional), if true, omit digest tags (e.g., ':sha256-...') + -O, --omit-digest-tags (Optional), if true, omit digest tags (e.g., ':sha256-...') ``` ### Options inherited from parent commands