<reponame>EHF32/pycritty<gh_stars>0
#!/usr/bin/env python3

# Pycritty
# <NAME>
# December 9, 2020

from alacritty import Alacritty, ConfigError
from cli import args
import log


def main():
    try:
        alacritty = Alacritty()
        alacritty.apply(**args())
        alacritty.save()
    except ConfigError as e:
        log.err(e)
        exit(1)


if __name__ == '__main__':
    main()
