Char flag list parser

Can you add the valid list to the error message.