Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SilentMissingConfig controls whether a warning message is printed // when the specified configuration file is missing. SilentMissingConfig bool )
Functions ¶
func Parse ¶
func Parse() error
Parse parses command-line flags and optionally merges them with values read from the configuration file specified via SetConfigFile. If a configuration file is provided, its flags are prepended to os.Args. Errors during parsing or reading are handled according to the flag package’s ErrorHandling setting.
func SetConfigFile ¶
func SetConfigFile(path string)
SetConfigFile sets the path of the configuration file to be used when parsing flags.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.