Arg returns the i'th command-line argument.
Args returns the non-flag command-line arguments.
Bool defines a bool flag with specified name, default value, and usage string.
BoolP is like Bool, but accepts a shorthand letter that can be used after a single dash.
BoolS is like Bool, but accepts a shorthand letter to be used after a single dash, alone.
BoolSlice defines a []bool flag with specified name, default value, and usage string.
BoolSliceP is like BoolSlice, but accepts a shorthand letter that can be used after a single dash.
BoolSliceS is like BoolSlice, but accepts a shorthand letter that can be used after a single dash, alone.
BoolSliceVar defines a []bool flag with specified name, default value, and usage string.
BoolSliceVarP is like BoolSliceVar, but accepts a shorthand letter that can be used after a single dash.
BoolSliceVarS is like BoolSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
BoolVar defines a bool flag with specified name, default value, and usage string.
BoolVarP is like BoolVar, but accepts a shorthand letter that can be used after a single dash.
BoolVarS is like BoolVar, but accepts a shorthand letter to be used after a single dash, alone.
BytesBase64 defines an []byte flag with specified name, default value, and usage string.
BytesBase64P is like BytesBase64, but accepts a shorthand letter that can be used after a single dash.
BytesBase64S is like BytesBase64, but accepts a shorthand letter that can be used after a single dash, alone.
BytesBase64Var defines an []byte flag with specified name, default value, and usage string.
BytesBase64VarP is like BytesBase64Var, but accepts a shorthand letter that can be used after a single dash.
BytesBase64VarS is like BytesBase64Var, but accepts a shorthand letter that can be used after a single dash, alone.
BytesHex defines an []byte flag with specified name, default value, and usage string.
BytesHexP is like BytesHex, but accepts a shorthand letter that can be used after a single dash.
BytesHexS is like BytesHexP, but accepts a shorthand letter that can be used after a single dash, alone.
BytesHexVar defines an []byte flag with specified name, default value, and usage string.
BytesHexVarP is like BytesHexVar, but accepts a shorthand letter that can be used after a single dash.
BytesHexVarS is like BytesHexVarP, but accepts a shorthand letter that can be used after a single dash, alone.
Complex128 defines a complex128 flag with specified name, default value, and usage string.
Complex128P is like Complex128, but accepts a shorthand letter that can be used after a single dash.
Complex128S is like Complex128, but accepts a shorthand letter that can be used after a single dash, alone.
Complex128Slice defines a []complex128 flag with specified name, default value, and usage string.
Complex128SliceP is like Complex128Slice, but accepts a shorthand letter that can be used after a single dash.
Complex128SliceS is like Complex128Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Complex128SliceVar defines a complex128[] flag with specified name, default value, and usage string.
Complex128SliceVarP is like Complex128SliceVar, but accepts a shorthand letter that can be used after a single dash.
Complex128SliceVarS is like Complex128SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Complex128Var defines a complex128 flag with specified name, default value, and usage string.
Complex128VarP is like Complex128Var, but accepts a shorthand letter that can be used after a single dash.
Complex128VarS is like Complex128Var, but accepts a shorthand letter that can be used after a single dash, alone.
Count defines a count flag with specified name, default value, and usage string.
CountP is like Count only takes a shorthand for the flag name.
CountS is like Count only takes a shorthand for the flag name, alone.
CountVar like CountVar only the flag is placed on the CommandLine instead of a given flag set.
CountVarP is like CountVar only take a shorthand for the flag name.
CountVarS is like CountVar only take a shorthand for the flag name, alone.
Duration defines a time.Duration flag with specified name, default value, and usage string.
DurationP is like Duration, but accepts a shorthand letter that can be used after a single dash.
DurationS is like Duration, but accepts a shorthand letter that can be used after a single dash, alone.
DurationSlice defines a []time.Duration flag with specified name, default value, and usage string.
DurationSliceP is like DurationSlice, but accepts a shorthand letter that can be used after a single dash.
DurationSliceS is like DurationSlice, but accepts a shorthand letter that can be used after a single dash, alone.
DurationSliceVar defines a duration[] flag with specified name, default value, and usage string.
DurationSliceVarP is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash.
DurationSliceVarS is like DurationSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
DurationVar defines a time.Duration flag with specified name, default value, and usage string.
DurationVarP is like DurationVar, but accepts a shorthand letter that can be used after a single dash.
DurationVarS is like DurationVar, but accepts a shorthand letter that can be used after a single dash, alone.
Float32 defines a float32 flag with specified name, default value, and usage string.
Float32P is like Float32, but accepts a shorthand letter that can be used after a single dash.
Float32S is like Float32, but accepts a shorthand letter that can be used after a single dash, alone.
Float32Slice defines a []float32 flag with specified name, default value, and usage string.
Float32SliceP is like Float32Slice, but accepts a shorthand letter that can be used after a single dash.
Float32SliceS is like Float32Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Float32SliceVar defines a float32[] flag with specified name, default value, and usage string.
Float32SliceVarP is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash.
Float32SliceVarS is like Float32SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Float32Var defines a float32 flag with specified name, default value, and usage string.
Float32VarP is like Float32Var, but accepts a shorthand letter that can be used after a single dash.
Float32VarS is like Float32Var, but accepts a shorthand letter that can be used after a single dash, alone.
Float64 defines a float64 flag with specified name, default value, and usage string.
Float64P is like Float64, but accepts a shorthand letter that can be used after a single dash.
Float64S is like Float64, but accepts a shorthand letter that can be used after a single dash, alone.
Float64Slice defines a []float64 flag with specified name, default value, and usage string.
Float64SliceP is like Float64Slice, but accepts a shorthand letter that can be used after a single dash.
Float64SliceS is like Float64Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Float64SliceVar defines a float64[] flag with specified name, default value, and usage string.
Float64SliceVarP is like Float64SliceVar, but accepts a shorthand letter that can be used after a single dash.
Float64SliceVarS is like Float64SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Float64Var defines a float64 flag with specified name, default value, and usage string.
Float64VarP is like Float64Var, but accepts a shorthand letter that can be used after a single dash.
Float64VarS is like Float64Var, but accepts a shorthand letter that can be used after a single dash, alone.
GetAllFlags return the flags in lexicographical order or in primordial order if f.SortFlags is false.
GetFlags return the flags in lexicographical order or in primordial order if f.SortFlags is false.
GetUnknownFlags returns unknown command-line flags in the order they were Parsed.
Int defines an int flag with specified name, default value, and usage string.
Int16 defines an int16 flag with specified name, default value, and usage string.
Int16P is like Int16, but accepts a shorthand letter that can be used after a single dash.
Int16S is like Int16, but accepts a shorthand letter that can be used after a single dash, alone.
Int16Slice defines a []int16 flag with specified name, default value, and usage string.
Int16SliceP is like Int16Slice, but accepts a shorthand letter that can be used after a single dash.
Int16SliceS is like Int16Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Int16SliceVar defines a int16[] flag with specified name, default value, and usage string.
Int16SliceVarP is like Int16SliceVar, but accepts a shorthand letter that can be used after a single dash.
Int16SliceVarS is like Int16SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Int16Var defines an int16 flag with specified name, default value, and usage string.
Int16VarP is like Int16Var, but accepts a shorthand letter that can be used after a single dash.
Int16VarS is like Int16Var, but accepts a shorthand letter that can be used after a single dash, alone.
Int32 defines an int32 flag with specified name, default value, and usage string.
Int32P is like Int32, but accepts a shorthand letter that can be used after a single dash.
Int32S is like Int32, but accepts a shorthand letter that can be used after a single dash, alone.
Int32Slice defines a []int32 flag with specified name, default value, and usage string.
Int32SliceP is like Int32Slice, but accepts a shorthand letter that can be used after a single dash.
Int32SliceS is like Int32Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Int32SliceVar defines a int32[] flag with specified name, default value, and usage string.
Int32SliceVarP is like Int32SliceVar, but accepts a shorthand letter that can be used after a single dash.
Int32SliceVarS is like Int32SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Int32Var defines an int32 flag with specified name, default value, and usage string.
Int32VarP is like Int32Var, but accepts a shorthand letter that can be used after a single dash.
Int32VarS is like Int32Var, but accepts a shorthand letter that can be used after a single dash, alone.
Int64 defines an int64 flag with specified name, default value, and usage string.
Int64P is like Int64, but accepts a shorthand letter that can be used after a single dash.
Int64S is like Int64, but accepts a shorthand letter that can be used after a single dash, alone.
Int64Slice defines a []int64 flag with specified name, default value, and usage string.
Int64SliceP is like Int64Slice, but accepts a shorthand letter that can be used after a single dash.
Int64SliceS is like Int64Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Int64SliceVar defines a int64[] flag with specified name, default value, and usage string.
Int64SliceVarP is like Int64SliceVar, but accepts a shorthand letter that can be used after a single dash.
Int64SliceVarS is like Int64SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Int64Var defines an int64 flag with specified name, default value, and usage string.
Int64VarP is like Int64Var, but accepts a shorthand letter that can be used after a single dash.
Int64VarS is like Int64Var, but accepts a shorthand letter that can be used after a single dash, alone.
Int8 defines an int8 flag with specified name, default value, and usage string.
Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash.
Int8S is like Int8, but accepts a shorthand letter that can be used after a single dash, alone.
Int8Slice defines a []int8 flag with specified name, default value, and usage string.
Int8SliceP is like Int8Slice, but accepts a shorthand letter that can be used after a single dash.
Int8SliceS is like Int8Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Int8SliceVar defines a int8[] flag with specified name, default value, and usage string.
Int8SliceVarP is like Int8SliceVar, but accepts a shorthand letter that can be used after a single dash.
Int8SliceVarS is like Int8SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Int8Var defines an int8 flag with specified name, default value, and usage string.
Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash.
Int8VarS is like Int8Var, but accepts a shorthand letter that can be used after a single dash, alone.
IntP is like Int, but accepts a shorthand letter that can be used after a single dash.
IntS is like Int, but accepts a shorthand letter that can be used after a single dash, alone.
IntSlice defines a []int flag with specified name, default value, and usage string.
IntSliceP is like IntSlice, but accepts a shorthand letter that can be used after a single dash.
IntSliceS is like IntSlice, but accepts a shorthand letter that can be used after a single dash, alone.
IntSliceVar defines a int[] flag with specified name, default value, and usage string.
IntSliceVarP is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash.
IntSliceVarS is like IntSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
IntVar defines an int flag with specified name, default value, and usage string.
IntVarP is like IntVar, but accepts a shorthand letter that can be used after a single dash.
IntVarS is like IntVar, but accepts a shorthand letter that can be used after a single dash, alone.
IP defines an net.IP flag with specified name, default value, and usage string.
IPMask defines an net.IPMask flag with specified name, default value, and usage string.
IPMaskP is like IP, but accepts a shorthand letter that can be used after a single dash.
IPMaskS is like IP, but accepts a shorthand letter that can be used after a single dash, alone.
IPMaskVar defines an net.IPMask flag with specified name, default value, and usage string.
IPMaskVarP is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash.
IPMaskVarS is like IPMaskVar, but accepts a shorthand letter that can be used after a single dash, alone.
IPNet defines an net.IPNet flag with specified name, default value, and usage string.
IPNetP is like IPNet, but accepts a shorthand letter that can be used after a single dash.
IPNetS is like IPNet, but accepts a shorthand letter that can be used after a single dash, alone.
IPNetSlice defines a []net.IPNet flag with specified name, default value, and usage string.
IPNetSliceP is like IPNetSlice, but accepts a shorthand letter that can be used after a single dash.
IPNetSliceS is like IPNetSlice, but accepts a shorthand letter that can be used after a single dash, alone.
IPNetSliceVar defines a []net.IPNet flag with specified name, default value, and usage string.
IPNetSliceVarP is like IPNetSliceVar, but accepts a shorthand letter that can be used after a single dash.
IPNetSliceVarS is like IPNetSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
IPNetVar defines an net.IPNet flag with specified name, default value, and usage string.
IPNetVarP is like IPNetVar, but accepts a shorthand letter that can be used after a single dash.
IPNetVarS is like IPNetVar, but accepts a shorthand letter that can be used after a single dash, alone.
IPP is like IP, but accepts a shorthand letter that can be used after a single dash.
IPS is like IP, but accepts a shorthand letter that can be used after a single dash, alone.
IPSlice defines a []net.IP flag with specified name, default value, and usage string.
IPSliceP is like IPSlice, but accepts a shorthand letter that can be used after a single dash.
IPSliceS is like IPSlice, but accepts a shorthand letter that can be used after a single dash, alone.
IPSliceVar defines a []net.IP flag with specified name, default value, and usage string.
IPSliceVarP is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash.
IPSliceVarS is like IPSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
IPVar defines an net.IP flag with specified name, default value, and usage string.
IPVarP is like IPVar, but accepts a shorthand letter that can be used after a single dash.
IPVarS is like IPVar, but accepts a shorthand letter that can be used after a single dash, alone.
Lookup returns the Flag structure of the named command-line flag, returning nil if none exists.
NArg is the number of arguments remaining after flags have been processed.
NewFlagSet returns a new, empty flag set with the specified name, error handling property and SortFlags set to true.
NFlag returns the number of command-line flags that have been set.
Parse parses the command-line flags from os.Args[1:].
ParseAll parses the command-line flags from os.Args[1:] and called fn for each.
Parsed returns true if the command-line flags have been parsed.
ParseIPv4Mask written in IP form (e.g.
PFlagFromGoFlag will return a *pflag.Flag given a *flag.Flag If the *flag.Flag.Name was a single character (ex: `v`) it will be accessible with both `-v` and `--v` in flags.
PrintDefaults prints, to standard error unless configured otherwise, a usage message showing the default settings of all defined command-line flags.
Set sets the value of the named command-line flag.
SetInterspersed sets whether to support interspersed option/non-option arguments.
ShorthandLookup returns the Flag structure of the short handed flag, returning nil if none exists.
String defines a string flag with specified name, default value, and usage string.
StringArray defines a string flag with specified name, default value, and usage string.
StringArrayP is like StringArray, but accepts a shorthand letter that can be used after a single dash.
StringArrayS is like StringArray, but accepts a shorthand letter that can be used after a single dash, alone.
StringArrayVar defines a string flag with specified name, default value, and usage string.
StringArrayVarP is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash.
StringArrayVarS is like StringArrayVar, but accepts a shorthand letter that can be used after a single dash, alone.
StringP is like String, but accepts a shorthand letter that can be used after a single dash.
StringS is like String, but accepts a shorthand letter that can be used after a single dash, alone.
StringSlice defines a string flag with specified name, default value, and usage string.
StringSliceP is like StringSlice, but accepts a shorthand letter that can be used after a single dash.
StringSliceS is like StringSlice, but accepts a shorthand letter that can be used after a single dash, alone.
StringSliceVar defines a string flag with specified name, default value, and usage string.
StringSliceVarP is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash.
StringSliceVarS is like StringSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
StringToInt defines a string flag with specified name, default value, and usage string.
StringToInt64 defines a string flag with specified name, default value, and usage string.
StringToInt64P is like StringToInt64, but accepts a shorthand letter that can be used after a single dash.
StringToInt64S is like StringToInt64, but accepts a shorthand letter that can be used after a single dash, alone.
StringToInt64Var defines a string flag with specified name, default value, and usage string.
StringToInt64VarP is like StringToInt64Var, but accepts a shorthand letter that can be used after a single dash.
StringToInt64VarS is like StringToInt64Var, but accepts a shorthand letter that can be used after a single dash, alone.
StringToIntP is like StringToInt, but accepts a shorthand letter that can be used after a single dash.
StringToIntS is like StringToInt, but accepts a shorthand letter that can be used after a single dash, alone.
StringToIntVar defines a string flag with specified name, default value, and usage string.
StringToIntVarP is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash.
StringToIntVarS is like StringToIntVar, but accepts a shorthand letter that can be used after a single dash, alone.
StringToString defines a string flag with specified name, default value, and usage string.
StringToStringP is like StringToString, but accepts a shorthand letter that can be used after a single dash.
StringToStringS is like StringToString, but accepts a shorthand letter that can be used after a single dash, alone.
StringToStringVar defines a string flag with specified name, default value, and usage string.
StringToStringVarP is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash.
StringToStringVarS is like StringToStringVar, but accepts a shorthand letter that can be used after a single dash, alone.
StringVar defines a string flag with specified name, default value, and usage string.
StringVarP is like StringVar, but accepts a shorthand letter that can be used after a single dash.
StringVarS is like StringVar, but accepts a shorthand letter that can be used after a single dash, alone.
Uint defines a uint flag with specified name, default value, and usage string.
Uint16 defines a uint flag with specified name, default value, and usage string.
Uint16P is like Uint16, but accepts a shorthand letter that can be used after a single dash.
Uint16S is like Uint16, but accepts a shorthand letter that can be used after a single dash, alone.
Uint16Slice defines a []uint16 flag with specified name, default value, and usage string.
Uint16SliceP is like Uint16Slice, but accepts a shorthand letter that can be used after a single dash.
Uint16SliceS is like Uint16Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Uint16SliceVar defines a uint16[] flag with specified name, default value, and usage string.
Uint16SliceVarP is like Uint16SliceVar, but accepts a shorthand letter that can be used after a single dash.
Uint16SliceVarS is like Uint16SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Uint16Var defines a uint flag with specified name, default value, and usage string.
Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash.
Uint16VarS is like Uint16Var, but accepts a shorthand letter that can be used after a single dash, alone.
Uint32 defines a uint32 flag with specified name, default value, and usage string.
Uint32P is like Uint32, but accepts a shorthand letter that can be used after a single dash.
Uint32S is like Uint32, but accepts a shorthand letter that can be used after a single dash, alone.
Uint32Slice defines a []uint32 flag with specified name, default value, and usage string.
Uint32SliceP is like Uint32Slice, but accepts a shorthand letter that can be used after a single dash.
Uint32SliceS is like Uint32Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Uint32SliceVar defines a uint32[] flag with specified name, default value, and usage string.
Uint32SliceVarP is like Uint32SliceVar, but accepts a shorthand letter that can be used after a single dash.
Uint32SliceVarS is like Uint32SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Uint32Var defines a uint32 flag with specified name, default value, and usage string.
Uint32VarP is like Uint32Var, but accepts a shorthand letter that can be used after a single dash.
Uint32VarS is like Uint32Var, but accepts a shorthand letter that can be used after a single dash, alone.
Uint64 defines a uint64 flag with specified name, default value, and usage string.
Uint64P is like Uint64, but accepts a shorthand letter that can be used after a single dash.
Uint64S is like Uint64, but accepts a shorthand letter that can be used after a single dash, alone.
Uint64Slice defines a []uint64 flag with specified name, default value, and usage string.
Uint64SliceP is like Uint64Slice, but accepts a shorthand letter that can be used after a single dash.
Uint64SliceS is like Uint64Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Uint64SliceVar defines a uint64[] flag with specified name, default value, and usage string.
Uint64SliceVarP is like Uint64SliceVar, but accepts a shorthand letter that can be used after a single dash.
Uint64SliceVarS is like Uint64SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Uint64Var defines a uint64 flag with specified name, default value, and usage string.
Uint64VarP is like Uint64Var, but accepts a shorthand letter that can be used after a single dash.
Uint64VarS is like Uint64Var, but accepts a shorthand letter that can be used after a single dash, alone.
Uint8 defines a uint8 flag with specified name, default value, and usage string.
Uint8P is like Uint8, but accepts a shorthand letter that can be used after a single dash.
Uint8S is like Uint8, but accepts a shorthand letter that can be used after a single dash, alone.
Uint8Slice defines a []uint8 flag with specified name, default value, and usage string.
Uint8SliceP is like Uint8Slice, but accepts a shorthand letter that can be used after a single dash.
Uint8SliceS is like Uint8Slice, but accepts a shorthand letter that can be used after a single dash, alone.
Uint8SliceVar defines a uint8[] flag with specified name, default value, and usage string.
Uint8SliceVarP is like Uint8SliceVar, but accepts a shorthand letter that can be used after a single dash.
Uint8SliceVarS is like Uint8SliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
Uint8Var defines a uint8 flag with specified name, default value, and usage string.
Uint8VarP is like Uint8Var, but accepts a shorthand letter that can be used after a single dash.
Uint8VarS is like Uint8Var, but accepts a shorthand letter that can be used after a single dash, alone.
UintP is like Uint, but accepts a shorthand letter that can be used after a single dash.
UintS is like Uint, but accepts a shorthand letter that can be used after a single dash, alone.
UintSlice defines a []uint flag with specified name, default value, and usage string.
UintSliceP is like UintSlice, but accepts a shorthand letter that can be used after a single dash.
UintSliceS is like UintSlice, but accepts a shorthand letter that can be used after a single dash, alone.
UintSliceVar defines a uint[] flag with specified name, default value, and usage string.
UintSliceVarP is like the UintSliceVar, but accepts a shorthand letter that can be used after a single dash.
UintSliceVarS is like the UintSliceVar, but accepts a shorthand letter that can be used after a single dash, alone.
UintVar defines a uint flag with specified name, default value, and usage string.
UintVarP is like UintVar, but accepts a shorthand letter that can be used after a single dash.
UintVarS is like UintVar, but accepts a shorthand letter that can be used after a single dash, alone.
UnquoteUsage extracts a back-quoted name from the usage string for a flag and returns it and the un-quoted usage.
Var defines a flag with the specified name and usage string.
VarP is like Var, but accepts a shorthand letter that can be used after a single dash.
VarS is like Var, but accepts a shorthand letter that can be used after a single dash, alone.
Visit visits the command-line flags in lexicographical order or in primordial order if f.SortFlags is false, calling fn for each.
VisitAll visits the command-line flags in lexicographical order or in primordial order if f.SortFlags is false, calling fn for each.