diff --git a/v2/internal/runner/options.go b/v2/internal/runner/options.go index cba1af5bf..eb57d94aa 100644 --- a/v2/internal/runner/options.go +++ b/v2/internal/runner/options.go @@ -95,6 +95,7 @@ func validateOptions(options *types.Options) error { } if options.Validate { + options.Headless = true // required for correct validation of headless templates validateTemplatePaths(options.TemplatesDirectory, options.Templates, options.Workflows) } diff --git a/v2/pkg/types/types.go b/v2/pkg/types/types.go index 5918ac41a..6e1b54565 100644 --- a/v2/pkg/types/types.go +++ b/v2/pkg/types/types.go @@ -103,7 +103,7 @@ type Options struct { Headless bool // ShowBrowser specifies whether the show the browser in headless mode ShowBrowser bool - // SytemResolvers enables override of nuclei's DNS client opting to use system resolver stack. + // SystemResolvers enables override of nuclei's DNS client opting to use system resolver stack. SystemResolvers bool // Metrics enables display of metrics via an http endpoint Metrics bool