Skip to content

Commit

Permalink
fixed root flag bug
Browse files Browse the repository at this point in the history
crashing the app!

Signed-off-by: quobix <dave@quobix.com>
  • Loading branch information
daveshanley committed Nov 30, 2023
1 parent 9fe587f commit 27fa81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/root_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ func Execute(version, commit, date string, fs embed.FS) {
rootCmd.Flags().StringP("base", "b", "", "Set a base path to resolve relative file references from, or a overriding base URL to resolve remote references from")
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", "v", false, "Load a HAR file instead of sniffing traffic, and validate against the OpenAPI specification (requires -s)")
rootCmd.Flags().BoolP("har-validate", "g", false, "Load a HAR file instead of sniffing traffic, and validate against the OpenAPI specification (requires -s)")

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

0 comments on commit 27fa81c

Please sign in to comment.