Parse command line arguments

Support for various cmd line arguments.
Obtain credentials from `.netrc` if not specified in arguments.