From: Sandro Tosi Date: Sun, 12 Aug 2012 15:33:41 +0000 (+0200) Subject: add usage example from cli; thanks to Christian Clauss from docs@ X-Git-Tag: v2.7.4rc1~648 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eca4006b1fbd3168302aa4d0b33462ef8d5d8600;p=thirdparty%2FPython%2Fcpython.git add usage example from cli; thanks to Christian Clauss from docs@ --- diff --git a/Doc/library/webbrowser.rst b/Doc/library/webbrowser.rst index 56c444d42ff1..e6e7ea27f430 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: