Commit eca4006b authored by Sandro Tosi's avatar Sandro Tosi

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

parent 106c2503
...@@ -36,7 +36,9 @@ The script :program:`webbrowser` can be used as a command-line interface for the ...@@ -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 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; 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, ``-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: The following exception is defined:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment