Source code for simvx.editor.main

"""``simvx-editor`` console-script entry point.

Takes the same arguments as ``simvx editor`` (see :mod:`simvx.editor.cli`) and hands off to
:func:`simvx.editor.app.launch`, which constructs and runs the :class:`Root`.
"""

import argparse

from .cli import add_arguments, run


[docs] def main() -> int: """Parse the command line and launch the editor.""" parser = argparse.ArgumentParser(prog="simvx-editor", description="SimVX Editor") add_arguments(parser) return run(parser.parse_args())
if __name__ == "__main__": raise SystemExit(main())