Validate command line arguments