Added vv flag to display more extra verbose information

This commit is contained in:
Ice3man543 2021-07-01 18:22:08 +05:30
parent e440ab5cba
commit d58180d588
3 changed files with 4 additions and 2 deletions

View File

@ -96,6 +96,7 @@ based on templates offering massive extensibility and ease of use.`)
set.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "Number of seconds to wait before evicting requests from cache") set.IntVar(&options.InteractionsEviction, "interactions-eviction", 60, "Number of seconds to wait before evicting requests from cache")
set.IntVar(&options.InteractionsPollDuration, "interactions-poll-duration", 5, "Number of seconds before each interaction poll request") set.IntVar(&options.InteractionsPollDuration, "interactions-poll-duration", 5, "Number of seconds before each interaction poll request")
set.IntVar(&options.InteractionsColldownPeriod, "interactions-cooldown-period", 5, "Extra time for interaction polling before exiting") set.IntVar(&options.InteractionsColldownPeriod, "interactions-cooldown-period", 5, "Extra time for interaction polling before exiting")
set.BoolVar(&options.VerboseVerbose, "vv", false, "Display Extra Verbose Information")
_ = set.Parse() _ = set.Parse()
if cfgFile != "" { if cfgFile != "" {

View File

@ -345,7 +345,7 @@ func (r *Runner) RunEnumeration() {
unclusteredRequests += int64(template.TotalRequests) * r.inputCount unclusteredRequests += int64(template.TotalRequests) * r.inputCount
} }
if r.options.Verbose { if r.options.VerboseVerbose {
for _, template := range store.Templates() { for _, template := range store.Templates() {
r.logAvailableTemplate(template.Path) r.logAvailableTemplate(template.Path)
} }

View File

@ -107,7 +107,8 @@ type Options struct {
// Version specifies if we should just show version and exit // Version specifies if we should just show version and exit
Version bool Version bool
// Verbose flag indicates whether to show verbose output or not // Verbose flag indicates whether to show verbose output or not
Verbose bool Verbose bool
VerboseVerbose bool
// No-Color disables the colored output. // No-Color disables the colored output.
NoColor bool NoColor bool
// UpdateTemplates updates the templates installed at startup // UpdateTemplates updates the templates installed at startup