comparison configuration/configuration.py @ 91:1e06fd17b8ad

make dump method configurable
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 28 Apr 2012 23:18:30 -0700
parents 6bf4a58b0988
children a2dd0deb06b5
comparison
equal deleted inserted replaced
90:6bf4a58b0988 91:1e06fd17b8ad
419 # return parsed arguments 419 # return parsed arguments
420 return options, args 420 return options, args
421 421
422 def dump(self, options): 422 def dump(self, options):
423 """dump configuration, if specified""" 423 """dump configuration, if specified"""
424
424 dump = getattr(options, 'dump') 425 dump = getattr(options, 'dump')
425 if dump: 426 if dump:
426 # TODO: have a way of specifying format other than filename 427 # TODO: have a way of specifying format other than filename
427 self.serialize(dump) 428 self.serialize(dump)
428 429