Heh, I also wrote one of these. Wondering if there is anything missing that I did not support correctly. https://github.com/kevinburke/hostsfile
I built the CLI because I needed a fast way to remove CIDR ranges (ie 172.27.1.0/24, etc..) when 100's of IPs get added and then no longer needed.