"""
Test dxfile and sqlite3 on DNAnexus platform
"""
import argparse
import sys

import wrapper

def main():
    args = parser.parse_args()
    args.func(args)

# dxsql shell command
parser = argparse.ArgumentParser(prog='dxsql', description=sys.modules[__name__].__doc__)
subparsers = parser.add_subparsers(help='sub-command help')

# basic test run
sparser = subparsers.add_parser('test', description=wrapper.wrapper.__doc__,
        help='Test use of DXFile and sqlite3 data store')
sparser.add_argument('nodes',  type=int, help='How many nodes')
sparser.add_argument('fname',  type=str, help='Output filename')

sparser.set_defaults(func=wrapper.wrapper)
