Exemple #1
0
 def parser(self):
     """The associated ArgParser object."""
     if self._parser:
         return self._parser
     parser = ArgParser()
     parser.host = self.host
     parser.add_parsers()
     self._parser = parser
     return self._parser
Exemple #2
0
 def create_parser(self):
     """Returns an argument parser."""
     parser = ArgParser()
     parser.host = self.host
     parser.add_parsers()
     return parser