Skip to content

Commit 1b4e407

Browse files
authored
Add -O shorthand for --omit-digest-tags to crane. (#1958)
--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 1b4e407

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: cmd/crane/cmd/list.go

+1-1
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

Diff for: cmd/crane/doc/crane_ls.md

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)