changeset 31:a655306ee78d

stubbing
author Jeff Hammel <k0scist@gmail.com>
date Tue, 04 Nov 2014 15:52:12 -0800
parents 75270e7a051b
children 27913386a8a3
files numerics/convert.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/numerics/convert.py	Tue Nov 04 14:54:10 2014 -0800
+++ b/numerics/convert.py	Tue Nov 04 15:52:12 2014 -0800
@@ -4,6 +4,7 @@
 convert between types
 """
 
+import argparse
 import sys
 from .read import CSVParser
 
@@ -24,5 +25,12 @@
 def main(args=sys.argv[1:]):
     """CLI"""
 
+    # parse command line
+    parser = argparse.ArgumentParser(description="interpolate types from file")
+    parser.add_argument('file',
+                        type=argparse.FileType('r'),
+                        help="CSV file")
+    options = parser.parse_args(args)
+
 if __name__ == '__main__':
     main()