# HG changeset patch # User Jeff Hammel # Date 1426438453 25200 # Node ID 895ad896023a11b44db32e972128c9fd9a167777 # Parent 32a849b8f1f04b2b76ad54007e19f399277e1293 cleanup diff -r 32a849b8f1f0 -r 895ad896023a numerics/manipulate.py --- a/numerics/manipulate.py Sun Mar 15 09:01:49 2015 -0700 +++ b/numerics/manipulate.py Sun Mar 15 09:54:13 2015 -0700 @@ -13,7 +13,7 @@ from .read import CSVParser # module globals -__all__ = ['main', 'ManipulationParser'] +__all__ = ['ManipulationParser', 'main'] here = os.path.dirname(os.path.realpath(__file__)) string = (str, unicode) @@ -23,9 +23,6 @@ def __init__(self, **kwargs): kwargs.setdefault('description', __doc__) CSVParser.__init__(self, **kwargs) - self.add_argument('--list', '--entries', '--list-entries', - dest='list_entries', nargs='?', const=0, type=int, - help="list all entries for this column") self.options = None def typed_data(self): @@ -35,16 +32,9 @@ """CLI""" # parse command line options - parser = Parser() + parser = ManipulationParser() options = parser.parse_args(args) - if options.list_entries: - raise NotImplementedError('TODO') # -> record TODO items - else: - # print help - print (parser.help()) - parser.exit() - if __name__ == '__main__': main()