Command-line parsing infrastructure.