diff --git a/README.md b/README.md index d8009c6..3b5d1a2 100644 --- a/README.md +++ b/README.md @@ -1555,7 +1555,7 @@ p.add_argument('', type=, nargs='?/*') # Optional arg ``` * **Use `'help='` to set argument description that will be displayed in help message.** -* **Use `'default='` to set option's default value.** +* **Use `'default='` to set option's or optional argument's default value.** * **Use `'type=FileType()'` for files. Accepts 'encoding', but 'newline' is None.** diff --git a/index.html b/index.html index f4d17c0..2b5717e 100644 --- a/index.html +++ b/index.html @@ -1319,7 +1319,7 @@ p.add_argument('<name>', type=<type>
  • Use 'help=<str>' to set argument description that will be displayed in help message.
  • -
  • Use 'default=<el>' to set option's default value.
  • +
  • Use 'default=<el>' to set option's or optional argument's default value.
  • Use 'type=FileType(<mode>)' for files. Accepts 'encoding', but 'newline' is None.

#Open

Opens the file and returns a corresponding file object.

<file> = open(<path>, mode='r', encoding=None, newline=None)