mr-karan / doggo

:dog: Command-line DNS Client for Humans. Written in Golang
https://doggo.mrkaran.dev/
GNU General Public License v3.0
2.91k stars 100 forks source link

Parsing issue in Windows Terminal + PowerShell #37

Closed wsw70 closed 2 years ago

wsw70 commented 2 years ago

There seems to be an issue with the parsing of the DNS server @...:

PS C:\Users\yop> doggo google.com
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
google.com.     A       IN      300s    142.250.179.110 192.168.10.3:53

PS C:\Users\yop> doggo google.com @1.1.1.1
ParserError:
Line |
   1 |  doggo google.com @1.1.1.1
     |                      ~
     | Missing property name after reference operator.

PS C:\Users\yop> doggo google.com "@1.1.1.1"
NAME            TYPE    CLASS   TTL     ADDRESS         NAMESERVER
google.com.     A       IN      264s    142.250.179.78  1.1.1.1:53
mr-karan commented 2 years ago

PR is appreciated.

mr-karan commented 2 years ago

This actually doesn't look like an issue with doggo, but the way a flag/argument is parsed in the terminal. Closing as there's nothing for doggo to fix here.