viff

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 diff
     1.1 --- a/apps/sort.py	Mon Aug 25 01:17:55 2008 +0200
     1.2 +++ b/apps/sort.py	Mon Aug 25 01:18:35 2008 +0200
     1.3 @@ -69,10 +69,10 @@
     1.4                    help="array size")
     1.5  parser.add_option("-m", "--max", type="int",
     1.6                    help="maximum size of array numbers")
     1.7 -parser.add_option("-t", "--test", default=False, action="store_true",
     1.8 +parser.add_option("-t", "--test", action="store_true",
     1.9                    help="run doctests on this file")
    1.10  
    1.11 -parser.set_defaults(modulus=2**65, size=8, max=100)
    1.12 +parser.set_defaults(modulus=2**65, size=8, max=100, test=False)
    1.13  
    1.14  Runtime.add_options(parser)
    1.15