summaryrefslogtreecommitdiff
path: root/Doc/library/webbrowser.rst
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-08-12 17:34:00 +0200
committerSandro Tosi <sandro.tosi@gmail.com>2012-08-12 17:34:00 +0200
commitc7b0e217e2ee000138ca5e7d6d08502c4995cf20 (patch)
tree587ae87dfabe899581ab742bc47f95c0bcd1e1b3 /Doc/library/webbrowser.rst
parent6cbe405a20f0cf542792fe7f8b3859dde99d37f5 (diff)
downloadcpython-git-c7b0e217e2ee000138ca5e7d6d08502c4995cf20.tar.gz
add usage example from cli; thanks to Christian Clauss from docs@
Diffstat (limited to 'Doc/library/webbrowser.rst')
-rw-r--r--Doc/library/webbrowser.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst
index b1a8d7374c..b2dcf8f7f9 100644
--- a/Doc/library/webbrowser.rst
+++ b/Doc/library/webbrowser.rst
@@ -36,7 +36,9 @@ The script :program:`webbrowser` can be used as a command-line interface for the
module. It accepts an 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.
+naturally, mutually exclusive. Usage example::
+
+ python -m webbrowser -t "http://www.python.org"
The following exception is defined: