INNER CODE UNIT · Python
main
cubist38/mlx-openai-server · app/main.py:312
def main():
"""Normalize process args and dispatch to the Click CLI.
This helper gathers command-line arguments, inserts the "launch"
subcommand when a subcommand is omitted for backwards compatibility,
and delegates execution to :func:`app.cli.cli` through
``cli.main``.
"""
from .cli import cli
args = [str(x) for x in sys.argv[1:]]
# Keep backwards compatibility: Add 'launch' subcommand if none is provided
if not args or args[0].startswith("-"):
args.insert(0, "launch")
cli.main(args=args)
if __name__ == "__main__":