Ejemplo n.º 1
0
 def generate_manpage(self, pkginfo, section=1, stream=None):
     """write a man page for the current configuration into the given
     stream or stdout
     """
     self._monkeypatch_expand_default()
     try:
         opt.generate_manpage(self._optik_parser, pkginfo,
                              section, stream=stream or sys.stdout)
     finally:
         self._unmonkeypatch_expand_default()
Ejemplo n.º 2
0
 def generate_manpage(self, pkginfo, section=1, stream=None):
     """write a man page for the current configuration into the given
     stream or stdout
     """
     self._monkeypatch_expand_default()
     try:
         optparse.generate_manpage(self.cmdline_parser, pkginfo,
                                   section, stream=stream or sys.stdout,
                                   level=self._maxlevel)
     finally:
         self._unmonkeypatch_expand_default()
Ejemplo n.º 3
0
 def generate_manpage(self,
                      pkginfo: attrdict,
                      section: int = 1,
                      stream: StringIO = None) -> None:
     """write a man page for the current configuration into the given
     stream or stdout
     """
     self._monkeypatch_expand_default()
     try:
         optik_ext.generate_manpage(
             self.cmdline_parser,
             pkginfo,
             section,
             stream=stream or sys.stdout,
             level=self._maxlevel,
         )
     finally:
         self._unmonkeypatch_expand_default()