From 1dc31db4e16aad81d29e6c96fd7ba005b3312611 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 4 Jan 2022 09:45:31 +0100 Subject: [PATCH] src/main.go: set parameters for getopt.Usage() --- src/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.go b/src/main.go index 5a0ce16..17b5092 100644 --- a/src/main.go +++ b/src/main.go @@ -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")