diff options
author | Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> | 2024-04-13 14:56:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 14:56:56 (GMT) |
commit | 56ed979d049846cfa6ec1dbb7ffe423f484d5182 (patch) | |
tree | 4809a2155ea23a6079a9f11bcb5016f753668304 /Doc | |
parent | 022ba6d161138fbe02bcb83b7e667567f2673b0a (diff) | |
download | cpython-56ed979d049846cfa6ec1dbb7ffe423f484d5182.zip cpython-56ed979d049846cfa6ec1dbb7ffe423f484d5182.tar.gz cpython-56ed979d049846cfa6ec1dbb7ffe423f484d5182.tar.bz2 |
gh-68583: webbrowser: replace `getopt` with `argparse`, add long options (#117047)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/webbrowser.rst | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst index c1c4619..3775d9f 100644 --- a/Doc/library/webbrowser.rst +++ b/Doc/library/webbrowser.rst @@ -42,9 +42,12 @@ a new tab, with the browser being brought to the foreground. The use of the The script :program:`webbrowser` can be used as a command-line interface for the module. It accepts a URL as the argument. It accepts the following optional -parameters: ``-n`` opens the URL in a new browser window, if possible; -``-t`` opens the URL in a new browser page ("tab"). The options are, -naturally, mutually exclusive. Usage example:: +parameters: + +* ``-n``/``--new-window`` opens the URL in a new browser window, if possible. +* ``-t``/``--new-tab`` opens the URL in a new browser page ("tab"). + +The options are, naturally, mutually exclusive. Usage example:: python -m webbrowser -t "https://www.python.org" |