add usage example from cli; thanks to Christian Clauss from docs@

This commit is contained in:
Sandro Tosi 2012-08-12 17:34:00 +02:00
parent 6cbe405a20
commit c7b0e217e2
1 changed files with 3 additions and 1 deletions

View 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: