MCPcopy Create free account
hub / github.com/Hackmanit/Web-Cache-Vulnerability-Scanner / appendBoolean

Function appendBoolean

pkg/flags.go:345–354  ·  view source on GitHub ↗
(options *[]FlagStruct, varBoolean *bool, longFlag string, shortFlag string, defaultValue bool, description string)

Source from the content-addressed store, hash-verified

343}
344
345func appendBoolean(options *[]FlagStruct, varBoolean *bool, longFlag string, shortFlag string, defaultValue bool, description string) {
346 flag.BoolVar(varBoolean, longFlag, defaultValue, "")
347 if shortFlag != longFlag {
348 flag.BoolVar(varBoolean, shortFlag, defaultValue, "")
349 }
350 *options = append(*options, FlagStruct{
351 LongFlag: longFlag,
352 ShortFlag: shortFlag,
353 Description: description})
354}

Callers 1

ParseFlagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected