'\n '.join(['%s: %s' % (name,value)
for name,value in sorted(settings)])))
name,value = settings[0]
- if name != argument.name:
- params.remove(name)
+ if num_provided == 0:
params[argument.name] = value
- if argument.callback != None:
- if num_provided > 0:
+ else:
+ if name != argument.name:
+ params.remove(name)
+ params[argument.name] = value
+ if argument.callback != None:
value = argument.callback(hooke, self, argument, value)
- params[argument.name] = value
+ params[argument.name] = value
argument.validate(value)
return params