mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:05:26 +00:00
Merge pull request #1017 from projectdiscovery/1016_vv_fix
This commit is contained in:
commit
744c739aa1
@ -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 {
|
||||||
|
|||||||
@ -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")
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user