Skip to content

Commit

Permalink
chore: incorporate file default and comment that should not be reverted
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobmoellerdev committed Jan 3, 2025
1 parent 791bca1 commit a13c82b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions cmds/ocm/commands/ocmcmds/common/addhdlrs/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import (
)

type Options struct {
// Replace enables to replace existing elements (same raw identity) with a different version instead
// of appending a new element.
Replace bool
}

Expand Down
2 changes: 1 addition & 1 deletion cmds/ocm/commands/ocmcmds/components/hash/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (o *Option) AddFlags(fs *pflag.FlagSet) {
fs.BoolVarP(&o.Actual, "actual", "", false, "use actual component descriptor")
fs.BoolVarP(&o.Update, "update", "U", false, "update digests in component version")
fs.BoolVarP(&o.Verify, "verify", "V", false, "verify digests found in component version")
fs.StringVarP(&o.outfile, "outfile", "O", "norm.ncd", "Output file for normalized component descriptor")
fs.StringVarP(&o.outfile, "outfile", "O", "-", "Output file for normalized component descriptor")
}

func (o *Option) Complete(cmd *Command) error {
Expand Down

0 comments on commit a13c82b

Please sign in to comment.