From 05329f8ca130b2713da70fd1eb07004e19368305 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 8 Mar 2009 13:44:11 -0700 Subject: [PATCH] IGN:... --- src/calibre/utils/help2man.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/calibre/utils/help2man.py b/src/calibre/utils/help2man.py index 603c0d6484..9777ea24cd 100644 --- a/src/calibre/utils/help2man.py +++ b/src/calibre/utils/help2man.py @@ -44,6 +44,8 @@ def create_man_page(prog, parser): lines.extend(format_option(opt)) for group in parser.option_groups: lines.append('.SS '+group.title) + if group.description: + lines.extend(['.PP', group.description]) for opt in group.option_list: lines.extend(format_option(opt)) @@ -54,10 +56,4 @@ def create_man_page(prog, parser): return bz2.compress('\n'.join(lines)) -def main(): - from calibre.ebooks.epub.from_any import option_parser - open('/tmp/any2epub.1calibre.bz2', 'w').write(create_man_page( - 'any2epub', option_parser())) - -if __name__ == '__main__': - main() \ No newline at end of file +