# 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__)
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=[