mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Rename the help function to a better name
This commit is contained in:
@@ -11,11 +11,11 @@ import (
|
||||
"github.com/senorprogrammer/wtf/weatherservices/weather"
|
||||
)
|
||||
|
||||
func DisplayModuleInfo(moduleName string) {
|
||||
if moduleName != "" {
|
||||
fmt.Printf("%s\n", helpFor(moduleName))
|
||||
} else {
|
||||
func Display(moduleName string) {
|
||||
if moduleName == "" {
|
||||
fmt.Println("\n --module takes a module name as an argument, i.e: '--module=github'")
|
||||
} else {
|
||||
fmt.Printf("%s\n", helpFor(moduleName))
|
||||
}
|
||||
|
||||
os.Exit(0)
|
||||
|
||||
Reference in New Issue
Block a user