瀏覽代碼

Improve documentation of build_manpage.py

oz123 10 年之前
父節點
當前提交
640b3a1798
共有 1 個文件被更改,包括 4 次插入3 次删除
  1. 4 3
      build_manpage.py

+ 4 - 3
build_manpage.py

@@ -37,12 +37,13 @@ import argparse
 
 class BuildManPage(Command):
 
-    """-O pwman.1 --parser=pwman:parser_options"""
-    description = 'Generate man page from setup().'
+    description = 'Generate man page from an ArgumentParser instance.'
 
     user_options = [
         ('output=', 'O', 'output file'),
-        ('parser=', None, 'module path to optparser (e.g. mymod:func'),
+        ('parser=', None, 'module path to an ArgumentParser instance'
+         '(e.g. mymod:func, where func is a method or function which return'
+         'an arparse.ArgumentParser instance.'),
     ]
 
     def initialize_options(self):