Add support for --net option

Closes #32.