[Python-checkins] cpython (2.7): add usage example from cli; thanks to Christian Clauss from docs@
sandro.tosi
python-checkins at python.org
Sun Aug 12 17:34:30 CEST 2012
http://hg.python.org/cpython/rev/c88822747c92
changeset: 78532:c88822747c92
branch: 2.7
parent: 78527:df337391f9f5
user: Sandro Tosi <sandro.tosi at gmail.com>
date: Sun Aug 12 17:33:41 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