Skip to content

Commit

Permalink
Fixed CLI help
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed Jul 26, 2020
1 parent df63568 commit 13f8a45
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/leakix/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (

func main() {
var scope string
flag.StringVar(&scope, "s", "leak", "Specify scope, default to leak")
flag.StringVar(&scope, "s", "leak", "Specify scope")
var query string
flag.StringVar(&query, "q", "*", "Specify search query, default to *")
flag.StringVar(&query, "q", "*", "Specify search query")
var outputTemplate string
flag.StringVar(&outputTemplate, "t", "{{ .Ip }}:{{ .Port }}", "Specify output template, default to \"{{ .Ip }}:{{ .Port }}\"")
flag.StringVar(&outputTemplate, "t", "{{ .Ip }}:{{ .Port }}", "Specify output template")
var limit int
flag.IntVar(&limit, "l", 100, "Limit results output, default to 100")
flag.IntVar(&limit, "l", 100, "Limit results output")

flag.Usage = func() {
fmt.Printf("Usage of leakix: \n")
Expand Down

0 comments on commit 13f8a45

Please sign in to comment.