GetGlobalOptionHelp retrieves help information for a global option
(key string)
| 345 | |
| 346 | // GetGlobalOptionHelp retrieves help information for a global option |
| 347 | func GetGlobalOptionHelp(key string) (description, detailedHelp string, validValues []string) { |
| 348 | opt, ok := GlobalConfigOptions[key] |
| 349 | if !ok { |
| 350 | return "", "", nil |
| 351 | } |
| 352 | return opt.Description, opt.DetailedHelp, opt.ValidValues |
| 353 | } |
| 354 | |
| 355 | // NewGlobalConfig creates a new HostConfig for global configuration (Host *) |
| 356 | func NewGlobalConfig() *HostConfig { |
no outgoing calls
no test coverage detected