From: W. Trevor King Date: Mon, 17 May 2010 14:33:03 +0000 (-0400) Subject: Remove leftover curve.InfoCommand cruft from ExportCommand.__init__. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=82d0396f036eedbcb7e04ac16a8c8cdf73d564f5;p=hooke.git Remove leftover curve.InfoCommand cruft from ExportCommand.__init__. --- diff --git a/hooke/plugin/curve.py b/hooke/plugin/curve.py index 1e0ad06..13ee496 100644 --- a/hooke/plugin/curve.py +++ b/hooke/plugin/curve.py @@ -57,20 +57,20 @@ of the current playlist. # Define commands class InfoCommand (Command): - """Print selected information about a :class:`hooke.curve.Curve`. + """Get selected information about a :class:`hooke.curve.Curve`. """ def __init__(self): args = [ CurveArgument, Argument(name='all', type='bool', default=False, count=1, - help='Print all curve information.'), + help='Get all curve information.'), ] self.fields = ['name', 'path', 'experiment', 'driver', 'filetype', 'note', 'blocks', 'block sizes'] for field in self.fields: args.append(Argument( name=field, type='bool', default=False, count=1, - help='Print curve %s' % field)) + help='Get curve %s' % field)) super(InfoCommand, self).__init__( name='curve info', arguments=args, help=self.__doc__) @@ -120,12 +120,6 @@ class ExportCommand (Command): ASCII text. """ def __init__(self): - self.fields = ['name', 'path', 'experiment', 'driver', 'filetype', 'note', - 'blocks', 'block sizes'] - for field in self.fields: - args.append(Argument( - name=field, type='bool', default=False, count=1, - help='Print curve %s' % field)) super(InfoCommand, self).__init__( name='curve info', arguments=[