Updating switch statement in cli