DOROTHY home

Reference / API reference / dorothy / dorothy.cli / dorothy.cli.main

dorothy.cli.main

dorothy.cli.main(argv=None)[source]

Run the dorothy command.

Without a subcommand, prints the help.

Parameters:

argv (list[str] | None) – Command-line arguments without the program name; None uses sys.argv.

Returns:

Exit code – 0 on success, 1 after an error.

Raises:

SystemExit – If the arguments are invalid (code 2), or for --help and --version (code 0).

Return type:

int