mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-06 17:31:53 +00: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:
@@ -80,7 +80,7 @@ class SettingsController(BaseController):
|
||||
description=field["description"],
|
||||
add_help=False,
|
||||
)
|
||||
ns_parser = self.parse_simple_args(parser, other_args)
|
||||
ns_parser, _ = self.parse_simple_args(parser, other_args)
|
||||
if ns_parser:
|
||||
session.settings.set_item(
|
||||
field_name, not getattr(session.settings, field_name)
|
||||
@@ -113,7 +113,7 @@ class SettingsController(BaseController):
|
||||
type=type_, # type: ignore[arg-type]
|
||||
choices=choices,
|
||||
)
|
||||
ns_parser = self.parse_simple_args(parser, other_args)
|
||||
ns_parser, _ = self.parse_simple_args(parser, other_args)
|
||||
if ns_parser:
|
||||
if ns_parser.value:
|
||||
# Console style is applied immediately
|
||||
|
||||
Reference in New Issue
Block a user