|
|
|
@ -66,6 +66,14 @@ func (f *Float64SliceFlag) TakesValue() bool {
|
|
|
|
|
return "Float64SliceFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *Float64SliceFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GenericFlag is a flag with type Generic
|
|
|
|
|
type GenericFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -135,6 +143,14 @@ func (f *GenericFlag) TakesValue() bool {
|
|
|
|
|
return "GenericFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *GenericFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Int64SliceFlag is a flag with type *Int64Slice
|
|
|
|
|
type Int64SliceFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -197,6 +213,14 @@ func (f *Int64SliceFlag) TakesValue() bool {
|
|
|
|
|
return "Int64SliceFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *Int64SliceFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IntSliceFlag is a flag with type *IntSlice
|
|
|
|
|
type IntSliceFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -259,6 +283,14 @@ func (f *IntSliceFlag) TakesValue() bool {
|
|
|
|
|
return "IntSliceFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *IntSliceFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// PathFlag is a flag with type Path
|
|
|
|
|
type PathFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -392,6 +424,14 @@ func (f *StringSliceFlag) TakesValue() bool {
|
|
|
|
|
return "StringSliceFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *StringSliceFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// TimestampFlag is a flag with type *Timestamp
|
|
|
|
|
type TimestampFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -463,6 +503,14 @@ func (f *TimestampFlag) TakesValue() bool {
|
|
|
|
|
return "TimestampFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *TimestampFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Uint64SliceFlag is a flag with type *Uint64Slice
|
|
|
|
|
type Uint64SliceFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -683,6 +731,14 @@ func (f *Float64Flag) TakesValue() bool {
|
|
|
|
|
return "Float64Flag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *Float64Flag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// IntFlag is a flag with type int
|
|
|
|
|
type IntFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -752,6 +808,14 @@ func (f *IntFlag) TakesValue() bool {
|
|
|
|
|
return "IntFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *IntFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Int64Flag is a flag with type int64
|
|
|
|
|
type Int64Flag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -821,6 +885,14 @@ func (f *Int64Flag) TakesValue() bool {
|
|
|
|
|
return "Int64Flag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *Int64Flag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// StringFlag is a flag with type string
|
|
|
|
|
type StringFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -957,6 +1029,14 @@ func (f *DurationFlag) TakesValue() bool {
|
|
|
|
|
return "DurationFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *DurationFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UintFlag is a flag with type uint
|
|
|
|
|
type UintFlag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -1026,6 +1106,14 @@ func (f *UintFlag) TakesValue() bool {
|
|
|
|
|
return "UintFlag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *UintFlag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Uint64Flag is a flag with type uint64
|
|
|
|
|
type Uint64Flag struct {
|
|
|
|
|
Name string
|
|
|
|
@ -1095,4 +1183,12 @@ func (f *Uint64Flag) TakesValue() bool {
|
|
|
|
|
return "Uint64Flag" != "BoolFlag"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// GetDefaultText returns the default text for this flag
|
|
|
|
|
func (f *Uint64Flag) GetDefaultText() string {
|
|
|
|
|
if f.DefaultText != "" {
|
|
|
|
|
return f.DefaultText
|
|
|
|
|
}
|
|
|
|
|
return f.GetValue()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// vim:ro
|
|
|
|
|