pbiering / ipv6calc

ipv6calc
https://www.deepspace6.net/projects/ipv6calc.html
Other
45 stars 15 forks source link

ipv6addr: unrecognized option '---no-prefixlength' #14

Closed Malvineous closed 4 years ago

Malvineous commented 4 years ago

According to the docs I can do this:

$ ipv6calc --out ipv6 --examples
  --forceprefix <num>: Force prefix to <num>
  --no-prefixlength: Don't print prefix length if given on input

However those two options don't seem to work:

$ ipv6calc --in prefix+mac "1:2:3:4::/56" "11:22:33:44:55:66" --action prefixmac2ipv6 --out ipv6addr --no-prefixlength
ipv6calc: unrecognized option '--no-prefixlength'
$ ipv6calc --in prefix+mac "1:2:3:4::" "11:22:33:44:55:66" --action prefixmac2ipv6 --out ipv6addr --force-prefix 56
ipv6calc: unrecognized option '--force-prefix'

The other options listed in --examples work.

pbiering commented 4 years ago

Thank you for bringing this to my attention, looks like I forgot to implement this fully...

Fixed in by https://github.com/pbiering/ipv6calc/commit/c25613c3ce12e40c8190741a17a899af47ae8430

Will create a release next