maxmind / mmdbinspect

look up records for one or more IPs/networks in one or more .mmdb databases
Apache License 2.0
135 stars 14 forks source link

README.md examples and online help mention -db option, but it has to be --db #36

Closed pbiering closed 1 year ago

pbiering commented 1 year ago
$ mmdbinspect -h
Usage: mmdbinspect --db path/to/db --db path/to/other/db 130.113.64.30/24 0:0:0:0:0:ffff:8064:a678
  -db value
        Path to an mmdb file. You may pass this arg more than once.

Any additional arguments passed are assumed to be networks to look up.  If an
address range is not supplied, /32 will be assumed for ipv4 addresses and /128
will be assumed for ipv6 addresses.

=> Usage line is correct, but the -db value is not correct, also examples here have wrong option mentioned: https://github.com/maxmind/mmdbinspect/blob/main/README.md#examples

=> search for -db and replace all by --db

oschwald commented 1 year ago

-db works fine for me. The program uses Go's flag package, which requires only a single dash but will also support two.

I'll leave this open though as I see that the program does suggest using --db in places, which is confusing.