Reference / API reference / dorothy / dorothy.cli / dorothy.cli.main
dorothy.cli.main¶
- dorothy.cli.main(argv=None)[source]¶
Run the
dorothycommand.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
--helpand--version(code 0).- Return type:
int