Skip to content

Commit

Permalink
cmd: imp code
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizzick committed Aug 29, 2024
1 parent 8d125a4 commit 29736a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions internal/cmd/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ const (
)

// commandLineOption contains information about a command-line option: its long
// and, if there is one, short forms, the value type, the description, and the
// default value.
// and, if there is one, short forms, the value type, and the description.
type commandLineOption struct {
description string
long string
Expand Down Expand Up @@ -390,7 +389,7 @@ func parseCmdLineOptions(opts *Options) (err error) {

// defineFlag defines a flag with specified setFlag function. o must not be
// nil.
func defineFlag[T interface{}](
func defineFlag[T any](
fieldPtr *T,
o *commandLineOption,
setFlag func(p *T, name string, value T, usage string),
Expand Down

0 comments on commit 29736a1

Please sign in to comment.