Kaydet (Commit) 794f5b35 authored tarafından Georg Brandl's avatar Georg Brandl

#4810: document "--" option separator in timeit help.

üst bd534f03
...@@ -9,7 +9,7 @@ the Python Cookbook, published by O'Reilly. ...@@ -9,7 +9,7 @@ the Python Cookbook, published by O'Reilly.
Library usage: see the Timer class. Library usage: see the Timer class.
Command line usage: 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: Options:
-n/--number N: how many times to execute 'statement' (default: see below) -n/--number N: how many times to execute 'statement' (default: see below)
...@@ -19,6 +19,7 @@ Options: ...@@ -19,6 +19,7 @@ Options:
-c/--clock: use time.clock() (default on Windows) -c/--clock: use time.clock() (default on Windows)
-v/--verbose: print raw timing results; repeat for more digits precision -v/--verbose: print raw timing results; repeat for more digits precision
-h/--help: print this usage message and exit -h/--help: print this usage message and exit
--: separate options from statement, use when statement starts with -
statement: statement to be timed (default 'pass') statement: statement to be timed (default 'pass')
A multi-line statement may be given by specifying each line as a A multi-line statement may be given by specifying each line as a
......
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