summaryrefslogtreecommitdiffstats
path: root/cli/openbb_cli/cli.py
blob: c301be893f9c54d4208527ac42e3c457bf147080 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
"""OpenBB Platform CLI entry point."""

import sys

from openbb_cli.config.setup import bootstrap
from openbb_cli.controllers.cli_controller import launch


def main():
    """Use the main entry point for the OpenBB CLI."""
    bootstrap()

    dev = "--dev" in sys.argv[1:]
    debug = "--debug" in sys.argv[1:]

    launch(dev, debug)


if __name__ == "__main__":
    main()