refactor argument parsing into parseArgs
check none exist network file
Merge remote-tracking branch 'houqp/miss_network_error'