"""MAIN:
main
"""
# pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203

import logging
import sys
from typing import List

from factories.factory_provider import FactoryProvider
from factories.ztoh_factory import ZTOHFactory
from repository.persist_fs import PersistFS as persist_fs


def run_main(argv: List[str]):
    """run main new_section"""
    factory: ZTOHFactory = FactoryProvider(persist_fs).provide()
    return factory.get_processor(argv).process()


if __name__ == "__main__":
    try:
        logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
        run_main(sys.argv)
    except IndexError:
        logging.info(f"check the params {sys.argv}")

"""MAIN:
main
"""
# pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203

import logging
import sys
from typing import List

from factories.factory_provider import FactoryProvider
from factories.ztoh_factory import ZTOHFactory
from repository.persist_fs import PersistFS as persist_fs


def run_main(argv: List[str]):
    """run main new_section"""
    factory: ZTOHFactory = FactoryProvider(persist_fs).provide()
    return factory.get_processor(argv).process()


if __name__ == "__main__":
    try:
        logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
        run_main(sys.argv)
    except IndexError:
        logging.info(f"check the params {sys.argv}")

MAIN: main # pylint: disable=C0116,R0903,E0401,W0703,W1201,redefined-outer-name,missing-function-docstring,E0401,C0114,W0511,W1203,C0200,C0103,W1203 run main new_section