# This file is part of the straitjacket project
# https://github.com/mbarkhau/straitjacket
#
# Copyright (c) 2018-2021 Manuel Barkhau (mbarkhau@gmail.com) - MIT License
# SPDX-License-Identifier: MIT

import click

from sjfmt_vendor import black
from sjfmt_vendor import blackd
from straitjacket import sjfmt


def main(*args, **kwargs) -> None:
    black.patch_click()
    blackd.main = click.version_option(version=sjfmt.__version__)(black.main)
    blackd.main(*args, **kwargs)


if __name__ == '__main__':
    main()
