changeset 47:6d34c02f7c9c

inherit from the right thing
author Jeff Hammel <k0scist@gmail.com>
date Mon, 19 Jan 2015 12:13:06 -0800
parents 93850093eafd
children 36e47061187f
files numerics/convert.py
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- 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