Mercurial > hg > numerics
changeset 106:895ad896023a
cleanup
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 15 Mar 2015 09:54:13 -0700 |
parents | 32a849b8f1f0 |
children | 19a5c2fb52bb |
files | numerics/manipulate.py |
diffstat | 1 files changed, 2 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- 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()