changeset 897:fcde53f07b16

Set commandline defaults in one place.
author Martin Geisler <mg@daimi.au.dk>
date Mon, 25 Aug 2008 01:18:35 +0200
parents 0c6562319435
children ff249565fa3a
files apps/sort.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/apps/sort.py	Mon Aug 25 01:17:55 2008 +0200
+++ b/apps/sort.py	Mon Aug 25 01:18:35 2008 +0200
@@ -69,10 +69,10 @@
                   help="array size")
 parser.add_option("-m", "--max", type="int",
                   help="maximum size of array numbers")
-parser.add_option("-t", "--test", default=False, action="store_true",
+parser.add_option("-t", "--test", action="store_true",
                   help="run doctests on this file")
 
-parser.set_defaults(modulus=2**65, size=8, max=100)
+parser.set_defaults(modulus=2**65, size=8, max=100, test=False)
 
 Runtime.add_options(parser)