support parameter completion for switch