Add argument --no-vlan-subinterfaces to suppress listing of subinterfaces:
jestabro@eunomia:~$ ./list_interfaces --type ethernet eth0 eth1 eth1.10 eth1.30 eth1.40 jestabro@eunomia:~$ ./list_interfaces --type ethernet --no-vlan-subinterfaces eth0 eth1