summaryrefslogtreecommitdiffstats
path: root/Doc/library/webbrowser.rst
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2012-08-12 15:34:00 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2012-08-12 15:34:00 (GMT)
commitc7b0e217e2ee000138ca5e7d6d08502c4995cf20 (patch)
tree587ae87dfabe899581ab742bc47f95c0bcd1e1b3 /Doc/library/webbrowser.rst
parent6cbe405a20f0cf542792fe7f8b3859dde99d37f5 (diff)
downloadcpython-c7b0e217e2ee000138ca5e7d6d08502c4995cf20.zip
cpython-c7b0e217e2ee000138ca5e7d6d08502c4995cf20.tar.gz
cpython-c7b0e217e2ee000138ca5e7d6d08502c4995cf20.tar.bz2
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 b1a8d73..b2dcf8f 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: