Register registers a flag set to be parsed. Register all flag sets before calling this function. flag.CommandLine is automatically registered.
Represents a GlobalConf context.
Opens/creates a config file for the specified appName. The path to config file is ~/.config/appName/config.ini.
NewWithOptions creates a GlobalConf from the provided Options. The caller is responsible for creating any referenced config files.
Deletes a flag from config file and persists the changes to the disk.
Parse parses all the registered flag sets, including the command line set and sets values from the config file if they are not already set.
Parses command line flags and then, all of the registered flag sets with the values provided in the config file.
ParseSet parses the config file for the provided flag set. If the flags are already set, values are overwritten by the values in the config file. Defaults are not set if the flag is not in the file.
Sets a flag's value and persists the changes to the disk.