rubem.cli.main

main(argv=None)[source]

Run the RUBEM command line.

This is the console script entry point; it returns normally when the command succeeds.

Parameters:

argv (Sequence[str] | None) – Command line arguments, without the program name. Defaults to None, which reads sys.argv.

Raises:
  • SystemExit(0) – After --version or --help.

  • SystemExit(1) – If the simulation fails or the configuration is invalid.

  • SystemExit(2) – If the arguments are invalid or the program is interrupted by the user.

Return type:

None