#!/usr/bin/env python
# -*- coding: utf-8 -*

import os
from argparse import ArgumentParser
from .table_configuration import TableConfiguration

cwd = os.getcwd()

def get_parser():
    """
    Returns a command-line argument parser.
    """

    parser = ArgumentParser()

    parser.add_argument("-d", "--directory",
                        help="path to description files directory; \
                            default=%s" % cwd,
                        dest="working_directory",
                        default=cwd)

    parser.add_argument("file",
                        help="path to your root json description file")

    return parser

def main():
    parser = get_parser()
    args = parser.parse_args()
    sql_table_config = TableConfiguration(files_path, table_configuration).tree()

if __name__ == "__main__":
    main()

#!/usr/bin/env python
# -*- coding: utf-8 -*

import os
from argparse import ArgumentParser
from .table_configuration import TableConfiguration

cwd = os.getcwd()

def get_parser():
    """
    Returns a command-line argument parser.
    """

    parser = ArgumentParser()

    parser.add_argument("-d", "--directory",
                        help="path to description files directory; \
                            default=%s" % cwd,
                        dest="working_directory",
                        default=cwd)

    parser.add_argument("file",
                        help="path to your root json description file")

    return parser

def main():
    parser = get_parser()
    args = parser.parse_args()
    sql_table_config = TableConfiguration(files_path, table_configuration).tree()

if __name__ == "__main__":
    main()

#!/usr/bin/env python # -*- coding: utf-8 -* Returns a command-line argument parser.