mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-06-05 02:47:38 +08:00
[Feature] Improvements to handling charts on the CLI results (#6544)
* better handling of the chart arg: falls back to charting.to_chart() and only then, if not possible to display falls back to the print_rich_table() * handling chart arguments aka unknown arguments * propagating changes on return type of parse_simple_args to choices.py for coherency
This commit is contained in:
@@ -205,10 +205,11 @@ class CLIController(BaseController):
|
||||
choices["results"] = {
|
||||
"--help": None,
|
||||
"-h": "--help",
|
||||
"--export": None,
|
||||
"--export": {c: None for c in ["csv", "json", "xlsx", "png", "jpg"]},
|
||||
"--index": None,
|
||||
"--key": None,
|
||||
"--chart": None,
|
||||
"--sheet_name": None,
|
||||
}
|
||||
|
||||
self.update_completer(choices)
|
||||
|
||||
Reference in New Issue
Block a user