Implement full command line parsing.