#!/usr/bin/env python

import toscript
import argparse

parser = argparse.ArgumentParser()
parser.add_argument('script_basename', type=str, help='basename of the script to execute' )
parser.add_argument('--test', action='store_true', help='does not execute the script, prints info instead')
args = parser.parse_args()

goer = toscript.ToGoer()
script = goer.get_script(args.script_basename)

if args.test:
    goer.print_contents(script)
else:
    print script
