[#346] Refactor argument parsing into lib/cli/argv.js.