Allow --net=none and -h

Fix #5857