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:
parent
15568153c9
commit
1dc31db4e1
1 changed files with 1 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue