Skip to content

Commit

Permalink
Add -O shorthand for --omit-digest-tags to crane.
Browse files Browse the repository at this point in the history
--omit-digest-tags is hard to remember and easy to typo.
Support -O as an alias.

Signed-off-by: Scott Moser <[email protected]>
  • Loading branch information
smoser committed Jun 11, 2024
1 parent 3764db2 commit 064d885
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/crane/cmd/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion cmd/crane/doc/crane_ls.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 064d885

Please sign in to comment.