Other CLI libraries, specifically argparse and click for Python, support arguments that must be one of a few given options. Figure out if Cobra supports this, and if it does then implement it. If Cobra does not support it, submit a PR to Cobra to fix it.
Other CLI libraries, specifically
argparse
andclick
for Python, support arguments that must be one of a few given options. Figure out if Cobra supports this, and if it does then implement it. If Cobra does not support it, submit a PR to Cobra to fix it.