[staff-cli] sanitize function

#4