:mod:`lookout.core.cmdline` =========================== .. py:module:: lookout.core.cmdline Module Contents --------------- .. py:class:: ArgumentDefaultsHelpFormatterNoNone Bases::class:`argparse.ArgumentDefaultsHelpFormatter` Pretty formatter of help message for arguments. It adds default value to the end if it is not None. .. function:: list_analyzers(args:argparse.Namespace) Print the list of the analyzers inside the `lookout` package. :param args: Not used - parsed command line arguments. :return: None .. function:: run_analyzers(args:argparse.Namespace) Launch the service with the specified analyzers. Blocks until a KeyboardInterrupt. :param args: Parsed command line arguments. :return: None .. function:: init_repo(args:argparse.Namespace) Initialize the model repository. :param args: Parsed command line arguments. :return: None .. function:: run_analyzer_tool(args:argparse.Namespace) Invoke the tooling of an analyzer. :param args: Parsed command line arguments. :return: None .. function:: create_model_repo_from_args(args:argparse.Namespace) Get SQLAlchemyModelRepository from command line arguments. :param args: `argparse` parsed arguments. :return: Constructed instance of SQLAlchemyModelRepository. .. function:: add_model_repository_args(parser) Add command line flags specific to the model repository. :param parser: `argparse` parser where to add new flags. .. function:: add_analyzer_arg(parser) Add the variable count argument to specify analyzers. :param parser: `argparse` parser where to add new flags. .. function:: create_parser() Initialize the command line argument parser.