From 5d0e1b693e70646cdc02f59b01393bd2b316ff10 Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Fri, 31 Jul 2020 18:46:23 +0200 Subject: [PATCH] no-pbar to pbar --- v2/internal/runner/options.go | 4 ++-- v2/internal/runner/runner.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/v2/internal/runner/options.go b/v2/internal/runner/options.go index f99676c54..b7e9462ce 100644 --- a/v2/internal/runner/options.go +++ b/v2/internal/runner/options.go @@ -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() diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index b71b221b2..3ace03c55 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -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) }