Skip to content

Commit ea51887

Browse files
committed
gh-54732: Address suggestions from real life PR Discussion.
Change two of the phrasings to make it more clear. Use straight quotes.
1 parent d2f76e4 commit ea51887

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/argparse.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -434,17 +434,17 @@ arguments they contain. For example::
434434
>>> parser.parse_args(['-f', 'foo', '@args.txt'])
435435
Namespace(f='bar')
436436

437-
Arguments read from a file must by default be one per line (but see also
437+
Arguments read from a file must be one per line by default (but see also
438438
:meth:`~ArgumentParser.convert_arg_line_to_args`) and are treated as if they
439439
were in the same place as the original file referencing argument on the command
440440
line. So in the example above, the expression ``['-f', 'foo', '@args.txt']``
441441
is considered equivalent to the expression ``['-f', 'foo', '-f', 'bar']``.
442442

443443
.. note::
444444

445-
Empty lines are treated as empty strings (``''``), which are allowed as values but not
446-
as arguments. Empty lines as arguments will result in an “unrecognized arguments”
447-
error.
445+
Empty lines are treated as empty strings (``''``), which are allowed as values but
446+
not as arguments. Empty lines, that are read as arguments will result in an
447+
"unrecognized arguments" error.
448448

449449
:class:`ArgumentParser` uses :term:`filesystem encoding and error handler`
450450
to read the file containing arguments.

0 commit comments

Comments
 (0)