Bump the version and add -V

This commit is contained in:
Joona Hoikkala 2018-11-15 10:47:43 +02:00
parent c9217e39f5
commit 66c46c35c0
No known key found for this signature in database
GPG key ID: D5AA86BBF9B29A5C
2 changed files with 7 additions and 1 deletions

View file

@ -24,6 +24,7 @@ type cliOptions struct {
matcherRegexp string
matcherWords string
headers headerFlags
showVersion bool
}
type headerFlags []string
@ -59,7 +60,12 @@ func main() {
flag.StringVar(&conf.Method, "X", "GET", "HTTP method to use.")
flag.BoolVar(&conf.Quiet, "s", false, "Do not print additional information (silent mode)")
flag.IntVar(&conf.Threads, "t", 40, "Number of concurrent threads.")
flag.BoolVar(&opts.showVersion, "V", false, "Show version information.")
flag.Parse()
if opts.showVersion {
fmt.Printf("ffuf version: %s\n", ffuf.VERSION)
os.Exit(0)
}
if err := prepareConfig(&opts, &conf); err != nil {
fmt.Fprintf(os.Stderr, "Encountered error(s): %s\n", err)
flag.Usage()

View file

@ -2,5 +2,5 @@ package ffuf
const (
//VERSION holds the current version number
VERSION = "0.5"
VERSION = "0.6"
)