package pflag

import 

// -- uint8 Value
type uint8Value uint8

func newUint8Value( uint8,  *uint8) *uint8Value {
	* = 
	return (*uint8Value)()
}

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

func ( *uint8Value) () string {
	return "uint8"
}

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

func uint8Conv( string) (interface{}, error) {
	,  := strconv.ParseUint(, 0, 8)
	if  != nil {
		return 0, 
	}
	return uint8(), nil
}

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

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

// Uint8VarP is like Uint8Var, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) ( *uint8, ,  string,  uint8,  string) {
	.VarP(newUint8Value(, ), , , )
}

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

// Uint8VarP is like Uint8Var, but accepts a shorthand letter that can be used after a single dash.
func ( *uint8, ,  string,  uint8,  string) {
	CommandLine.VarP(newUint8Value(, ), , , )
}

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

// Uint8P is like Uint8, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) (,  string,  uint8,  string) *uint8 {
	 := new(uint8)
	.Uint8VarP(, , , , )
	return 
}

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

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