mirror of
https://github.com/ffuf/ffuf
synced 2024-11-10 14:14:24 +00:00
Bump the version and add -V
This commit is contained in:
parent
c9217e39f5
commit
66c46c35c0
2 changed files with 7 additions and 1 deletions
6
main.go
6
main.go
|
@ -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()
|
||||
|
|
|
@ -2,5 +2,5 @@ package ffuf
|
|||
|
||||
const (
|
||||
//VERSION holds the current version number
|
||||
VERSION = "0.5"
|
||||
VERSION = "0.6"
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue