If its a flag we can give it a list of valid options See the must_match option here: https://github.com/davetron5000/gli/wiki/Declaring-flags-and-switches