#!/usr/bin/python
################################################################################
# "THE BEER-WARE LICENSE" (Revision 42):
# <thenoviceoof> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return
#  - thenoviceoof

import argparse
import pyli

if __name__ == '__main__':
    aparser = argparse.ArgumentParser(description=('Bringing Python closer to '
                                                  'the CLI'))
    aparser.add_argument('-x', dest='debug', action='store_true',
                         help='Enable debugging output')
    aparser.add_argument('command', type=str, help='The code snippet to run')
    args = aparser.parse_args()

    pyli.main(args.command, debug=args.debug)
