File tree 1 file changed +12
-3
lines changed
Filter options
1 file changed +12
-3
lines changed
Original file line number Diff line number Diff line change @@ -40,14 +40,23 @@ a new tab, with the browser being brought to the foreground. The use of the
40
40
:mod: `webbrowser ` module on iOS requires the :mod: `ctypes ` module. If
41
41
:mod: `ctypes ` isn't available, calls to :func: `.open ` will fail.
42
42
43
+ .. program :: webbrowser
44
+
43
45
The script :program: `webbrowser ` can be used as a command-line interface for the
44
46
module. It accepts a URL as the argument. It accepts the following optional
45
47
parameters:
46
48
47
- * ``-n ``/``--new-window `` opens the URL in a new browser window, if possible.
48
- * ``-t ``/``--new-tab `` opens the URL in a new browser page ("tab").
49
+ .. option :: -n , --new-window
50
+
51
+ Opens the URL in a new browser window, if possible.
52
+
53
+ .. option :: -t , --new-tab
54
+
55
+ Opens the URL in a new browser tab.
56
+
57
+ The options are, naturally, mutually exclusive. Usage example:
49
58
50
- The options are, naturally, mutually exclusive. Usage example::
59
+ .. code-block :: bash
51
60
52
61
python -m webbrowser -t " https://www.python.org"
53
62
You can’t perform that action at this time.
0 commit comments