godyn/tools/help.go

24 lines
405 B
Go
Raw Normal View History

2023-10-16 15:52:17 +02:00
package tools
import (
"fmt"
"os"
)
// exported function(s)
func PrintHelp() {
fmt.Println(
"usage:\n"+
" godyn [options] <mode>\n"+
"\n"+
" options:\n"+
" -h, --help display this help\n"+
" -c, --config specify the path to the config file",
"\n\n"+
" modes:\n"+
" -s, --server start godyn in server mode\n",
" -c, --client start gody in client mode",
)
os.Exit(0)
}