Skip to content

Commit

Permalink
fix: skip parsing first argument
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Jul 3, 2023
1 parent 2c717f7 commit d60a620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ All long form (--) flags can be toggled with the dig-standard +[no]flag notation
}

// Add non-flag RR types
for _, arg := range args {
for _, arg := range args[1:] {
// Find a server by @ symbol if it isn't set by flag
if opts.Server == "" && strings.HasPrefix(arg, "@") {
opts.Server = strings.TrimPrefix(arg, "@")
Expand Down

0 comments on commit d60a620

Please sign in to comment.