# -*- coding: utf-8 -*-
import argparse
import os

import basic_example


if __name__ == '__main__':
    parser = argparse.ArgumentParser(
        formatter_class=argparse.RawDescriptionHelpFormatter,
        description="""\033[92mYandex.Database examples binary.\x1b[0m\n""")
    parser.add_argument("-d", "--database", required=True, help="Name of the database to use")
    parser.add_argument("-e", "--endpoint", required=True, help="Endpoint url to use")
    parser.add_argument("-p", "--path", default='')

    args = parser.parse_args()
    basic_example.run(
        args.endpoint,
        args.database,
        args.path,

        # os.environ.get("YDB_TOKEN")

    )