Revision 0155548b kamaki/cli/argument.py

b/kamaki/cli/argument.py
68 68
            self.help = help
69 69
        if parsed_name:
70 70
            self.parsed_name = parsed_name
71
        assert self.parsed_name, 'No parsed name for argument %s' % self
71 72
        self.default = default
72 73

  
73 74
    @property
......
243 244
        super(ValueArgument, self).__init__(1, help, parsed_name, default)
244 245

  
245 246

  
247
class CommaSeparatedListArgument(ValueArgument):
248
    """
249
    :value type: string
250
    :value returns: list of the comma separated values
251
    """
252

  
253
    @property
254
    def value(self):
255
        return self._value or list()
256

  
257
    @value.setter
258
    def value(self, newvalue):
259
        self._value = newvalue.split(',') if newvalue else list()
260

  
261

  
246 262
class IntArgument(ValueArgument):
247 263

  
248 264
    @property

Also available in: Unified diff