add usage example from cli; thanks to Christian Clauss from docs@
authorSandro Tosi <sandro.tosi@gmail.com>
Sun, 12 Aug 2012 15:33:41 +0000 (17:33 +0200)
committerSandro Tosi <sandro.tosi@gmail.com>
Sun, 12 Aug 2012 15:33:41 +0000 (17:33 +0200)
Doc/library/webbrowser.rst

index 56c444d42ff1a5fdf899e01c564a05cd3e832b06..e6e7ea27f43025345bc953f382960945fd96c9d0 100644 (file)
@@ -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: