@@ -1455,7 +1455,7 @@ The ``deprecated`` keyword argument of
1455
1455
specifies if the argument is deprecated and will be removed
1456
1456
in the future.
1457
1457
For arguments, if ``deprecated `` is ``True ``, then a warning will be
1458
- printed to standard error when the argument is used::
1458
+ printed to :data: ` sys.stderr ` when the argument is used::
1459
1459
1460
1460
>>> import argparse
1461
1461
>>> parser = argparse.ArgumentParser(prog='snake.py')
@@ -2235,8 +2235,8 @@ Exiting methods
2235
2235
.. method :: ArgumentParser.exit(status=0, message=None)
2236
2236
2237
2237
This method terminates the program, exiting with the specified *status *
2238
- and, if given, it prints a *message * before that. The user can override
2239
- this method to handle these steps differently::
2238
+ and, if given, it prints a *message * to :data: ` sys.stderr ` before that.
2239
+ The user can override this method to handle these steps differently::
2240
2240
2241
2241
class ErrorCatchingArgumentParser(argparse.ArgumentParser):
2242
2242
def exit(self, status=0, message=None):
@@ -2246,8 +2246,8 @@ Exiting methods
2246
2246
2247
2247
.. method :: ArgumentParser.error(message)
2248
2248
2249
- This method prints a usage message including the *message * to the
2250
- standard error and terminates the program with a status code of 2.
2249
+ This method prints a usage message, including the *message *, to
2250
+ :data: ` sys.stderr ` and terminates the program with a status code of 2.
2251
2251
2252
2252
2253
2253
Intermixed parsing
0 commit comments