Optimize CLI defun parser by removing boost::regex.