Improved the syntax generated by the select-cases dialog