Merge pull request #1017 from projectdiscovery/1016_vv_fix

This commit is contained in:
Sandeep Singh 2021-09-15 03:55:31 +05:30 committed by GitHub
commit 744c739aa1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -21,6 +21,11 @@ func ParseOptions(options *types.Options) {
// Check if stdin pipe was given // Check if stdin pipe was given
options.Stdin = hasStdin() options.Stdin = hasStdin()
// if VerboseVerbose is set, it implicitly enables the Verbose option as well
if options.VerboseVerbose {
options.Verbose = true
}
// Read the inputs and configure the logging // Read the inputs and configure the logging
configureOutput(options) configureOutput(options)
@ -116,7 +121,7 @@ func isValidURL(urlString string) bool {
// configureOutput configures the output on the screen // configureOutput configures the output on the screen
func configureOutput(options *types.Options) { func configureOutput(options *types.Options) {
// If the user desires verbose output, show verbose output // If the user desires verbose output, show verbose output
if options.Verbose { if options.Verbose || options.VerboseVerbose {
gologger.DefaultLogger.SetMaxLevel(levels.LevelVerbose) gologger.DefaultLogger.SetMaxLevel(levels.LevelVerbose)
} }
if options.Debug { if options.Debug {

View File

@ -489,7 +489,7 @@ func (r *Runner) RunEnumeration() error {
// 0 matches means no templates were found in directory // 0 matches means no templates were found in directory
if templateCount == 0 { if templateCount == 0 {
return errors.New("no templates were found") return errors.New("no valid templates were found")
} }
/* /*