Skip to content

Commit

Permalink
fixed flag
Browse files Browse the repository at this point in the history
Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Jan 13, 2024
1 parent 08646e1 commit e9ed0a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/root_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var (

harFlag, _ := cmd.Flags().GetString("har")
harValidate, _ := cmd.Flags().GetBool("har-validate")
harWhiteList, _ := cmd.Flags().GetStringArray("har-whitelist")
harWhiteList, _ := cmd.Flags().GetStringArray("har-allow")

debug, _ := cmd.Flags().GetBool("debug")
mockMode, _ = cmd.Flags().GetBool("mock-mode")
Expand Down Expand Up @@ -598,7 +598,7 @@ func Execute(version, commit, date string, fs embed.FS) {
rootCmd.Flags().BoolP("debug", "l", false, "Enable debug logging")
rootCmd.Flags().StringP("har", "z", "", "Load a HAR file instead of sniffing traffic")
rootCmd.Flags().BoolP("har-validate", "g", false, "Load a HAR file instead of sniffing traffic, and validate against the OpenAPI specification (requires -s)")
rootCmd.Flags().StringArrayP("har-whitelist", "j", nil, "Add a path to the HAR whitelist, can use arg multiple times")
rootCmd.Flags().StringArrayP("har-allow", "j", nil, "Add a path to the HAR allow list, can use arg multiple times")
rootCmd.Flags().StringP("report-filename", "f", "wiretap-report.json", "Filename for any headless report generation output")

if err := rootCmd.Execute(); err != nil {
Expand Down

0 comments on commit e9ed0a4

Please # to comment.