Преглед изворни кода

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):
 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 = [
     user_options = [
         ('output=', 'O', 'output file'),
         ('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):
     def initialize_options(self):