Merge pull request #194 from projectdiscovery/bugfix-pbar

no-pbar to pbar
dev
bauthard 2020-07-31 22:28:40 +05:30 committed by GitHub
commit e79fc46c24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ type Options struct {
TemplatesDirectory string // TemplatesDirectory is the directory to use for storing templates
JSON bool // JSON writes json output to files
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
}
@ -69,7 +69,7 @@ func ParseOptions() *Options {
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.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()

View File

@ -148,7 +148,7 @@ func New(options *Options) (*Runner, error) {
runner.output = output
}
if !options.Silent && !options.DisableProgressBar {
if !options.Silent && options.EnableProgressBar {
// Creates the progress tracking object
runner.progress = progress.NewProgress(runner.options.NoColor)
}