mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
* fix: use tomlkit instead of toml & add --cli * fix: remove cli option, poetry groups ignored by pip * fix: redirect unittest patch * adding --cli to the dev install --------- Co-authored-by: hjoaquim <henriquecjoaquim@gmail.com>
24 lines
472 B
Python
24 lines
472 B
Python
"""OpenBB Platform CLI entry point."""
|
|
|
|
import sys
|
|
|
|
|
|
def main():
|
|
"""Use the main entry point for the OpenBB CLI."""
|
|
print("Loading...\n") # noqa: T201
|
|
|
|
# pylint: disable=import-outside-toplevel
|
|
from openbb_cli.config.setup import bootstrap
|
|
from openbb_cli.controllers.cli_controller import launch
|
|
|
|
bootstrap()
|
|
|
|
dev = "--dev" in sys.argv[1:]
|
|
debug = "--debug" in sys.argv[1:]
|
|
|
|
launch(dev, debug)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|