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
154
154
* usage _ - The string describing the program usage (default: generated from
155
155
arguments added to parser)
156
156
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)
158
159
159
- * epilog _ - Text to display after the argument help (default: none )
160
+ * epilog _ - Text to display after the argument help (by default, no text )
160
161
161
162
* parents _ - A list of :class: `ArgumentParser ` objects whose arguments should
162
163
also be included
@@ -1831,8 +1832,8 @@ FileType objects
1831
1832
Namespace(out=<_io.TextIOWrapper name='file.txt' mode='w' encoding='UTF-8'>, raw=<_io.FileIO name='raw.dat' mode='wb'>)
1832
1833
1833
1834
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::
1836
1837
1837
1838
>>> parser = argparse.ArgumentParser()
1838
1839
>>> parser.add_argument('infile', type=argparse.FileType('r'))
You can’t perform that action at this time.
0 commit comments