comparison makeitso/python_package/{{package}}/{{main}}.py @ 198:be7e2e336d7a

STUB: makeitso/python_package/{{package}}/{{main}}.py
author Jeff Hammel <k0scist@gmail.com>
date Tue, 10 Jun 2014 12:43:45 -0700
parents bb57bec165b7
children 0a991b8fe839
comparison
equal deleted inserted replaced
197:bb57bec165b7 198:be7e2e336d7a
25 return directory 25 return directory
26 26
27 27
28 class Parser(argparse.ArgumentParser): 28 class Parser(argparse.ArgumentParser):
29 """CLI option parser""" 29 """CLI option parser"""
30 def __init__(self): 30 def __init__(self, **kwargs):
31 argparse.ArgumentParser.__init__(self, description=__doc__) 31 kwargs.setdefault('description', __doc__)
32 argparse.ArgumentParser.__init__(self, **kwargs)
32 self.options = None 33 self.options = None
33 34
34 def parse_args(self, *args, **kw): 35 def parse_args(self, *args, **kw):
35 options = argparse.ArgumentParser.parse_args(self, *args, **kw) 36 options = argparse.ArgumentParser.parse_args(self, *args, **kw)
36 self.validate(options) 37 self.validate(options)