Base command line parsing.