De-spaghettified the CLI by adding dedicated option parsers.