Skip to content

Commit

Permalink
feat(turncat): Extend help message in --help
Browse files Browse the repository at this point in the history
  • Loading branch information
levaitamas authored Jan 9, 2024
1 parent c40128c commit d7448e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/turncat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,14 @@ func main() {
// var passwd = flag.StringP("log", "l", "all:WARN", "Log level (default: all:WARN).")
var insecure = flag.BoolP("insecure", "i", false, "Insecure TLS mode, accept self-signed certificates (default: false).")
var verbose = flag.BoolP("verbose", "v", false, "Verbose logging, identical to -l all:DEBUG.")
var help = flag.BoolP("help", "h", false, "Display this help text and exit")
flag.Parse()

if *help {
Usage()
os.Exit(0)
}

if flag.NArg() != 3 {
Usage()
os.Exit(1)
Expand Down

0 comments on commit d7448e6

Please sign in to comment.