File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -154,9 +154,10 @@ ArgumentParser objects
154154 * usage _ - The string describing the program usage (default: generated from
155155 arguments added to parser)
156156
157- * description _ - Text to display before the argument help (default: none)
157+ * description _ - Text to display before the argument help
158+ (by default, no text)
158159
159- * epilog _ - Text to display after the argument help (default: none )
160+ * epilog _ - Text to display after the argument help (by default, no text )
160161
161162 * parents _ - A list of :class: `ArgumentParser ` objects whose arguments should
162163 also be included
@@ -1831,8 +1832,8 @@ FileType objects
18311832 Namespace(out=<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'>, raw=<_io.FileIO name='raw.dat' mode='wb'>)
18321833
18331834 FileType objects understand the pseudo-argument ``'-' `` and automatically
1834- convert this into `` sys.stdin ` ` for readable :class: `FileType ` objects and
1835- `` sys.stdout ` ` for writable :class: `FileType ` objects::
1835+ convert this into :data: ` sys.stdin ` for readable :class: `FileType ` objects and
1836+ :data: ` sys.stdout ` for writable :class: `FileType ` objects::
18361837
18371838 >>> parser = argparse.ArgumentParser()
18381839 >>> parser.add_argument('infile', type=argparse.FileType('r'))
You can’t perform that action at this time.
0 commit comments