def main()

in azure-slurm/slurmcc/cli.py [0:0]


def main(argv: Optional[Iterable[str]] = None) -> None:
    try:
        clilibmain(argv or sys.argv[1:], "slurm", SlurmCLI())
    except AzureSlurmError as e:
        logging.error(e.message)
        sys.exit(1)
    except Exception:
        log_files = [x.baseFilename for x in logging.getLogger().handlers if hasattr(x, "baseFilename")]
        logging.exception(f"Unexpected error. See {','.join(log_files)} for more information.")
        raise