Skip to content

Commit

Permalink
prevent panic when redefine of rod arg
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Aug 14, 2022
1 parent dcaa173 commit 2eb3f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/defaults/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func ResetWith(options string) {
Reset()

if _, has := os.LookupEnv("DISABLE_ROD_FLAG"); !has {
if !flag.Parsed() {
if !flag.Parsed() && flag.Lookup("rod") == nil {
flag.String("rod", "", `Set the default value of options used by rod.`)
}

Expand Down

0 comments on commit 2eb3f66

Please sign in to comment.