Prechádzať zdrojové kódy

Show the documentation of the special parameters available for the class Module

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@56866 15284696-431f-4ddb-bdfa-cd5b030d7da7
Pietro Zambelli 12 rokov pred
rodič
commit
0a1706fd7d

+ 1 - 1
lib/python/pygrass/modules/interface/module.py

@@ -246,7 +246,7 @@ class Module(object):
              for line in izip_longest(*[iter(self.params_list)] * 3)]),)
         params = '\n'.join([par.__doc__ for par in self.params_list])
         flags = self.flags.__doc__
-        return '\n'.join([head, params, DOC['flag_head'], flags])
+        return '\n'.join([head, params, DOC['flag_head'], flags, DOC['foot']])
 
     def get_dict(self):
         dic = {}

+ 4 - 2
lib/python/pygrass/modules/interface/read.py

@@ -94,6 +94,8 @@ run_: True, optional
 finish_: True, optional
     If True wait untill the end of the module execution, and store the module
     outputs into stdout, stderr attributes of the class.
-stdin_: PIPE,
-    Set the standard input
+stdin_: PIPE, optional
+    Set the standard input.
+env_: dictionary, optional
+    Set the evironment variables.
 """}