# HG changeset patch # User Jeff Hammel # Date 1421698386 28800 # Node ID 6d34c02f7c9c3d86a290a2020f1fa4763fc567ea # Parent 93850093eafd6485b289070a93d3e7cb420a0206 inherit from the right thing diff -r 93850093eafd -r 6d34c02f7c9c numerics/convert.py --- a/numerics/convert.py Mon Jan 19 10:55:22 2015 -0800 +++ b/numerics/convert.py Mon Jan 19 12:13:06 2015 -0800 @@ -6,7 +6,7 @@ import argparse import sys -from .read import read_csv +from .read import read_csv, CSVParser __all__ = ['cast', 'float_or_orig', 'main'] @@ -41,15 +41,13 @@ """CLI""" # parse command line - parser = argparse.ArgumentParser(description="interpolate types from file") - parser.add_argument('file', - type=argparse.FileType('r'), - help="CSV file") + parser = CSVParser(description="interpolate types from file") options = parser.parse_args(args) # read CSV file data = parser.read() + import pdb; pdb.set_trace() # print type information raise NotImplementedError('TODO') # -> record TODO items