Command Line Interface (instalooter.cli
)¶
Implementation of the main program executable.
Warning
Only cli.main
and cli.logger
are guaranteed to be stable, do not
rely on any other member from this package !
-
instalooter.cli.
main
(argv=None, stream=None)[source]¶ Run from the command line interface.
- Parameters
argv (list) – The positional arguments to read. Defaults to
sys.argv
to use CLI arguments.stream (IOBase) – A file where to write error messages. Leave to
None
to use theStandardErrorHandler
for logs, andsys.stderr
for error messages.
- Returns
An error code, or 0 if the program executed successfully.
- Return type