Flags for Choices
Flags for Choices
To add an options menu to your choices, you must provide a flags
object. If one of the keyboard shortcuts are hit, or the user selects the option, then the flag
global will have the matching key from your flags set to true
:
Using the same script above, In the terminal, you would pass an open flag like so: