brona/iproute2mac

Missing some ip command shortcuts

deployable opened this issue · 2 comments

→ ip ad sh
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
       ip -V
where  OBJECT := { link | addr | route | neigh }
       OPTIONS := { -4 | -6 }

iproute2 uses a matches function for it's command processing which looks equivalent to using .startswith(). This allows any length of substring to be used for a command but the order of commands needs to match iproute2 so any ambiguous commands come out the same. I don't think iproute2mac supports enough commands for this to be an issue yet.

By the way, this script is awesome! Saves the man route scan every time I have to switch back to osx routes :)