Create a base command finviz and add subcommands as functionality increases.
Create a screener subcommand to run screens against Finviz.
Create a help sub-subcommand for screener to help with displaying valid options.
Examples:
$ finviz screener -s TopGainers -o -ChangeFromOpen -f Industry:gold,airlines Price:PriceOver1
# Same as running the RunScreen function and printing the dataframe to screen
$ finviz screener help
# Returns general help for all options (basically lists possible values and syntax)
$ finviz screener help signal filter:industry,sector
# Returns general help for signal and filter, along with specific help for industry, sector filters
Create a base command
finviz
and add subcommands as functionality increases. Create ascreener
subcommand to run screens against Finviz. Create ahelp
sub-subcommand forscreener
to help with displaying valid options.Examples: