Moving the argument parsing out of server.js for clarity