Skip to content

Commit

Permalink
rename flag to disable tty
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Sep 20, 2023
1 parent 4c362f8 commit 941188f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/internal/option/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Common struct {
func (opts *Common) ApplyFlags(fs *pflag.FlagSet) {
fs.BoolVarP(&opts.Debug, "debug", "d", false, "debug mode")
fs.BoolVarP(&opts.Verbose, "verbose", "v", false, "verbose output")
fs.BoolVarP(&opts.avoidTTY, "noTTY", "", false, "[Preview] avoid using stdout as a terminal")
fs.BoolVarP(&opts.avoidTTY, "no-tty", "", false, "[Preview] avoid using stdout as a terminal")
}

// WithContext returns a new FieldLogger and an associated Context derived from ctx.
Expand Down

0 comments on commit 941188f

Please sign in to comment.