[Python-checkins] cpython (3.2): add usage example from cli; thanks to Christian Clauss from docs@
sandro.tosi
python-checkins at python.org
Sun Aug 12 17:34:31 CEST 2012
http://hg.python.org/cpython/rev/df4ace12e413
changeset: 78533:df4ace12e413
branch: 3.2
parent: 78529:5617c4a0c035
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Aug 12 17:34:00 2012 +0200
summary:
add usage example from cli; thanks to Christian Clauss from docs@
files:
Doc/library/webbrowser.rst | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst
--- a/Doc/library/webbrowser.rst
+++ b/Doc/library/webbrowser.rst
@@ -36,7 +36,9 @@
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:
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list