simvx.editor.cli

The editor’s command line, shared by simvx editor and the simvx-editor script.

Both spellings take the same arguments: an optional positional PATH naming the project directory or file to open, and --backend to pick the windowing backend.

Module Contents

Functions

add_arguments

Declare the editor’s arguments on parser.

run

Launch the editor from parsed arguments.

register

Attach editor to the simvx CLI.

API

simvx.editor.cli.add_arguments(parser: argparse.ArgumentParser) → None[source]

Declare the editor’s arguments on parser.

simvx.editor.cli.run(args: argparse.Namespace) → int[source]

Launch the editor from parsed arguments.

simvx.editor.cli.register(subparsers: argparse._SubParsersAction) → None[source]

Attach editor to the simvx CLI.