package pflag

import 

// -- int8 Value
type int8Value int8

func newInt8Value( int8,  *int8) *int8Value {
	* = 
	return (*int8Value)()
}

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

func ( *int8Value) () string {
	return "int8"
}

func ( *int8Value) () string { return strconv.FormatInt(int64(*), 10) }

func int8Conv( string) (interface{}, error) {
	,  := strconv.ParseInt(, 0, 8)
	if  != nil {
		return 0, 
	}
	return int8(), nil
}

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

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

// Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) ( *int8, ,  string,  int8,  string) {
	.VarP(newInt8Value(, ), , , )
}

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

// Int8VarP is like Int8Var, but accepts a shorthand letter that can be used after a single dash.
func ( *int8, ,  string,  int8,  string) {
	CommandLine.VarP(newInt8Value(, ), , , )
}

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

// Int8P is like Int8, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) (,  string,  int8,  string) *int8 {
	 := new(int8)
	.Int8VarP(, , , , )
	return 
}

// Int8 defines an int8 flag with specified name, default value, and usage string.
// The return value is the address of an int8 variable that stores the value of the flag.
func ( string,  int8,  string) *int8 {
	return CommandLine.Int8P(, "", , )
}

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