Skip to content

Commit 8bf04ed

Browse files
update to use argument
1 parent 8c47ebf commit 8bf04ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/argparse.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2125,8 +2125,8 @@ Parser defaults
21252125

21262126
Note that defaults can be set at both the parser level using :meth:`set_defaults`
21272127
and at the argument level using :meth:`add_argument`. If both are provided for the
2128-
same attribute, the order of setting these defaults determines which one takes
2129-
precedence. The last default set for an attribute is the one that is used:
2128+
same argument, the order of setting these defaults determines which one takes
2129+
precedence. The last default set for an argument is the one that is used:
21302130

21312131
>>> parser = argparse.ArgumentParser()
21322132
>>> parser.add_argument('--foo', default='bar')

0 commit comments

Comments
 (0)