From c7b0e217e2ee000138ca5e7d6d08502c4995cf20 Mon Sep 17 00:00:00 2001 From: Sandro Tosi Date: Sun, 12 Aug 2012 17:34:00 +0200 Subject: add usage example from cli; thanks to Christian Clauss from docs@ --- Doc/library/webbrowser.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: -- cgit v0.12