mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-24 06:15:27 +00:00
no-pbar to pbar
This commit is contained in:
parent
f63f5774d8
commit
5d0e1b693e
@ -30,7 +30,7 @@ type Options struct {
|
|||||||
TemplatesDirectory string // TemplatesDirectory is the directory to use for storing templates
|
TemplatesDirectory string // TemplatesDirectory is the directory to use for storing templates
|
||||||
JSON bool // JSON writes json output to files
|
JSON bool // JSON writes json output to files
|
||||||
JSONRequests bool // write requests/responses for matches in JSON output
|
JSONRequests bool // write requests/responses for matches in JSON output
|
||||||
DisableProgressBar bool // Disable progrss bar
|
EnableProgressBar bool // Enable progrss bar
|
||||||
|
|
||||||
Stdin bool // Stdin specifies whether stdin input was given to the process
|
Stdin bool // Stdin specifies whether stdin input was given to the process
|
||||||
}
|
}
|
||||||
@ -69,7 +69,7 @@ func ParseOptions() *Options {
|
|||||||
flag.StringVar(&options.TemplatesDirectory, "update-directory", "", "Directory to use for storing nuclei-templates")
|
flag.StringVar(&options.TemplatesDirectory, "update-directory", "", "Directory to use for storing nuclei-templates")
|
||||||
flag.BoolVar(&options.JSON, "json", false, "Write json output to files")
|
flag.BoolVar(&options.JSON, "json", false, "Write json output to files")
|
||||||
flag.BoolVar(&options.JSONRequests, "json-requests", false, "Write requests/responses for matches in JSON output")
|
flag.BoolVar(&options.JSONRequests, "json-requests", false, "Write requests/responses for matches in JSON output")
|
||||||
flag.BoolVar(&options.DisableProgressBar, "no-pbar", false, "Disable the progress bar")
|
flag.BoolVar(&options.EnableProgressBar, "pbar", false, "Enable the progress bar")
|
||||||
|
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
|
|
||||||
|
|||||||
@ -148,7 +148,7 @@ func New(options *Options) (*Runner, error) {
|
|||||||
runner.output = output
|
runner.output = output
|
||||||
}
|
}
|
||||||
|
|
||||||
if !options.Silent && !options.DisableProgressBar {
|
if !options.Silent && options.EnableProgressBar {
|
||||||
// Creates the progress tracking object
|
// Creates the progress tracking object
|
||||||
runner.progress = progress.NewProgress(runner.options.NoColor)
|
runner.progress = progress.NewProgress(runner.options.NoColor)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user