Add command line arguments validation.