summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2010-08-01 08:52:32 (GMT)
committerGeorg Brandl <georg@python.org>2010-08-01 08:52:32 (GMT)
commit794f5b3559f9ae9b4b54467144c8cd37253ca47c (patch)
tree6cb64a76c76e84324873f744fe2f03365f181c7b /Lib
parentbd534f03498c97273dc5bf00182e6405a3a92e01 (diff)
downloadcpython-794f5b3559f9ae9b4b54467144c8cd37253ca47c.zip
cpython-794f5b3559f9ae9b4b54467144c8cd37253ca47c.tar.gz
cpython-794f5b3559f9ae9b4b54467144c8cd37253ca47c.tar.bz2
#4810: document "--" option separator in timeit help.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/timeit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/timeit.py b/Lib/timeit.py
index 63d94ca..5c613fc 100644
--- a/Lib/timeit.py
+++ b/Lib/timeit.py
@@ -9,7 +9,7 @@ the Python Cookbook, published by O'Reilly.
Library usage: see the Timer class.
Command line usage:
- python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [statement]
+ python timeit.py [-n N] [-r N] [-s S] [-t] [-c] [-h] [--] [statement]
Options:
-n/--number N: how many times to execute 'statement' (default: see below)
@@ -19,6 +19,7 @@ Options:
-c/--clock: use time.clock() (default on Windows)
-v/--verbose: print raw timing results; repeat for more digits precision
-h/--help: print this usage message and exit
+ --: separate options from statement, use when statement starts with -
statement: statement to be timed (default 'pass')
A multi-line statement may be given by specifying each line as a