package pflag

import 

// -- uint16 value
type uint16Value uint16

func newUint16Value( uint16,  *uint16) *uint16Value {
	* = 
	return (*uint16Value)()
}

func ( *uint16Value) ( string) error {
	,  := strconv.ParseUint(, 0, 16)
	* = uint16Value()
	return 
}

func ( *uint16Value) () string {
	return "uint16"
}

func ( *uint16Value) () string { return strconv.FormatUint(uint64(*), 10) }

func uint16Conv( string) (interface{}, error) {
	,  := strconv.ParseUint(, 0, 16)
	if  != nil {
		return 0, 
	}
	return uint16(), nil
}

// GetUint16 return the uint16 value of a flag with the given name
func ( *FlagSet) ( string) (uint16, error) {
	,  := .getFlagType(, "uint16", uint16Conv)
	if  != nil {
		return 0, 
	}
	return .(uint16), nil
}

// Uint16Var defines a uint flag with specified name, default value, and usage string.
// The argument p points to a uint variable in which to store the value of the flag.
func ( *FlagSet) ( *uint16,  string,  uint16,  string) {
	.VarP(newUint16Value(, ), , "", )
}

// Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) ( *uint16, ,  string,  uint16,  string) {
	.VarP(newUint16Value(, ), , , )
}

// Uint16Var defines a uint flag with specified name, default value, and usage string.
// The argument p points to a uint  variable in which to store the value of the flag.
func ( *uint16,  string,  uint16,  string) {
	CommandLine.VarP(newUint16Value(, ), , "", )
}

// Uint16VarP is like Uint16Var, but accepts a shorthand letter that can be used after a single dash.
func ( *uint16, ,  string,  uint16,  string) {
	CommandLine.VarP(newUint16Value(, ), , , )
}

// Uint16 defines a uint flag with specified name, default value, and usage string.
// The return value is the address of a uint  variable that stores the value of the flag.
func ( *FlagSet) ( string,  uint16,  string) *uint16 {
	 := new(uint16)
	.Uint16VarP(, , "", , )
	return 
}

// Uint16P is like Uint16, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) (,  string,  uint16,  string) *uint16 {
	 := new(uint16)
	.Uint16VarP(, , , , )
	return 
}

// Uint16 defines a uint flag with specified name, default value, and usage string.
// The return value is the address of a uint  variable that stores the value of the flag.
func ( string,  uint16,  string) *uint16 {
	return CommandLine.Uint16P(, "", , )
}

// Uint16P is like Uint16, but accepts a shorthand letter that can be used after a single dash.
func (,  string,  uint16,  string) *uint16 {
	return CommandLine.Uint16P(, , , )
}