Example #1
0
 def callback_manpage(self, option, opt_str, value, parser):
     f = codecs.getwriter('utf_8')(sys.stdout)
     writer = ManWriter(parser,
                        section='1',
                        date=datetime.date.today(),
                        source='Version %s' % (VERSION, ),
                        manual='User Commands',
                        short_desc=self.short_desc,
                        synopsis=self.synopsis,
                        long_desc=self.long_desc,
                        files=self.files,
                        authors=self.authors,
                        see_also=self.see_also)
     writer.write_manpage(f)
     sys.exit(0)
Example #2
0
 def callback_manpage(self, option, opt_str, value, parser):
   f = codecs.getwriter('utf_8')(sys.stdout)
   writer = ManWriter(parser,
                      section='1',
                      date=datetime.date.today(),
                      source='Version %s' % (VERSION,),
                      manual='User Commands',
                      short_desc=self.short_desc,
                      synopsis=self.synopsis,
                      long_desc=self.long_desc,
                      files=self.files,
                      authors=self.authors,
                      see_also=self.see_also)
   writer.write_manpage(f)
   sys.exit(0)