Make -NoPrompt switch type-safe