1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-api-healthcheck synced 2026-06-18 05:00:03 +02:00

src/main.go: set parameters for getopt.Usage()

This commit is contained in:
Henrik Hautakoski 2022-01-04 09:45:31 +01:00
parent 15568153c9
commit 1dc31db4e1
No known key found for this signature in database
GPG key ID: 608414D93E862CCD

View file

@ -117,6 +117,7 @@ func main() {
logger = log.New()
// Command line parsing
getopt.SetParameters("[ip] [port]")
getopt.FlagLong(&usage, "help", 'h', "Print this help text")
getopt.FlagLong(&version, "version", 'v', "Print version")
getopt.FlagLong(&logFile, "log", 'l', "Path to log file", "file")