Port CLI to Click.