package pflag

// -- func Value
type funcValue func(string) error

func ( funcValue) ( string) error { return () }

func ( funcValue) () string { return "func" }

func ( funcValue) () string { return "" } // same behavior as stdlib 'flag' package

// Func defines a func flag with specified name, callback function and usage string.
//
// The callback function will be called every time "--{name}={value}" (or equivalent) is
// parsed on the command line, with "{value}" as an argument.
func ( *FlagSet) ( string,  string,  func(string) error) {
	.FuncP(, "", , )
}

// FuncP is like Func, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) ( string,  string,  string,  func(string) error) {
	var  Value = funcValue()
	.VarP(, , , )
}

// Func defines a func flag with specified name, callback function and usage string.
//
// The callback function will be called every time "--{name}={value}" (or equivalent) is
// parsed on the command line, with "{value}" as an argument.
func ( string,  string,  func(string) error) {
	CommandLine.FuncP(, "", , )
}

// FuncP is like Func, but accepts a shorthand letter that can be used after a single dash.
func (,  string,  string,  func(string) error) {
	CommandLine.FuncP(, , , )
}