mirror of
https://github.com/eosswedenorg/eth-healthcheck
synced 2026-06-16 05:04:55 +02:00
src/cmd/main.go: setup positional parameters for getopt.Usage()
This commit is contained in:
parent
1540482c12
commit
1cbf8a06e6
1 changed files with 1 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ func main() {
|
|||
var printVersion bool;
|
||||
var printUsage bool;
|
||||
|
||||
getopt.SetParameters("[ip] [port]")
|
||||
getopt.FlagLong(&printUsage, "help", 'h', "Print this help text")
|
||||
getopt.FlagLong(&printVersion, "version", 'v', "Print version")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue