Remove leftover curve.InfoCommand cruft from ExportCommand.__init__.
authorW. Trevor King <wking@drexel.edu>
Mon, 17 May 2010 14:33:03 +0000 (10:33 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 17 May 2010 14:33:03 +0000 (10:33 -0400)
hooke/plugin/curve.py

index 1e0ad061687914fb1bd6576cee485419b8ca4d73..13ee496cc8a3d8d6bd890fc1f0de37a5297194c1 100644 (file)
@@ -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=[