Преглед на файлове

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):