def main():
    """Main function."""
    args = init_args()

    if args['version']:
        print('termgraph v{}'.format(VERSION))
        sys.exit()

    _, labels, data, colors = read_data(args)
    if args['calendar']:
        calendar_heatmap(data, labels, args)
    else:
        chart(colors, data, args, labels)
Main function.