Skip to content

Commit a48deb9

Browse files
committed
Add -O shorthand for --omit-digest-tags to crane.
--omit-digest-tags is hard to remember and easy to typo. Support -O as an alias. Signed-off-by: Scott Moser <[email protected]>
1 parent 3764db2 commit a48deb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/crane/cmd/list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewCmdList(options *[]crane.Option) *cobra.Command {
4040
},
4141
}
4242
cmd.Flags().BoolVar(&fullRef, "full-ref", false, "(Optional) if true, print the full image reference")
43-
cmd.Flags().BoolVar(&omitDigestTags, "omit-digest-tags", false, "(Optional), if true, omit digest tags (e.g., ':sha256-...')")
43+
cmd.Flags().BoolVarP(&omitDigestTags, "omit-digest-tags", "O", false, "(Optional), if true, omit digest tags (e.g., ':sha256-...')")
4444
return cmd
4545
}
4646

0 commit comments

Comments
 (0)