Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilkes committed Sep 18, 2024
1 parent b085268 commit b7a5d91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmdline/cmdline.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ func (cl *CmdLine) NewOption(value Value) *Option {
}

// NewGeneralOption creates a new Option and attaches it to this CmdLine. Valid value types are: *bool, *int, *int8,
// *int16, *int32, *int64, *uint, *uint8, *uint16, *uint32, *uint64, *string, *time.Duration, *[]bool, *[]uint8,
// *[]uint16, *[]uint32, *[]uint64, *[]int8, *[]int16, *[]int32, *[]int64, *[]string, *[]time.Duration
// *int16, *int32, *int64, *uint, *uint8, *uint16, *uint32, *uint64, *float32, *float64, *string, *time.Duration,
// *[]bool, *[]uint8, *[]uint16, *[]uint32, *[]uint64, *[]int8, *[]int16, *[]int32, *[]int64, *[]string,
// *[]time.Duration
func (cl *CmdLine) NewGeneralOption(value any) *Option {
option := new(Option)
option.value = &GeneralValue{Value: value}
Expand Down

0 comments on commit b7a5d91

Please sign in to comment.