d3an / finviz

Go API for Finviz
https://github.com/d3an/finviz/wiki
MIT License
20 stars 3 forks source link

Set CLI export flag to be either (csv|json) #32

Closed d3an closed 2 years ago

d3an commented 4 years ago

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.

d3an commented 4 years ago

This issue is blocked until the feature is added to the pflags library. Issue #236 describes the feature.