[eit.*] split ArgumentParser object creation from parsing code

This commit is contained in:
Fabio Erculiani
2011-10-17 15:36:49 +02:00
parent 69a0bb87e0
commit 86fdfbaba0
33 changed files with 208 additions and 51 deletions
+7
View File
@@ -37,6 +37,13 @@ class EitCommand(object):
def __init__(self, args):
self._args = args
def _get_parser(self):
"""
This is the argparse parser setup method, it shall return
the ArgumentParser object that will be used by parse().
"""
raise NotImplementedError()
def parse(self):
"""
Parse the actual arguments and return