package pflag

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

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

func ( boolfuncValue) () string { return "boolfunc" }

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

func ( boolfuncValue) () bool { return true }

// BoolFunc defines a func flag with specified name, callback function and usage string.
//
// The callback function will be called every time "--{name}" (or any form that matches the flag) is parsed
// on the command line.
func ( *FlagSet) ( string,  string,  func(string) error) {
	.BoolFuncP(, "", , )
}

// BoolFuncP is like BoolFunc, but accepts a shorthand letter that can be used after a single dash.
func ( *FlagSet) (,  string,  string,  func(string) error) {
	var  Value = boolfuncValue()
	 := .VarPF(, , , )
	.NoOptDefVal = "true"
}

// BoolFunc defines a func flag with specified name, callback function and usage string.
//
// The callback function will be called every time "--{name}" (or any form that matches the flag) is parsed
// on the command line.
func ( string,  string,  func(string) error) {
	CommandLine.BoolFuncP(, "", , )
}

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