Revision eb647cfe kamaki/cli/argument/__init__.py

b/kamaki/cli/argument/__init__.py
52 52
    This is the top-level Argument class. It is suggested to extent this
53 53
    class into more specific argument types.
54 54
    """
55
    lvalue_delimiter = '/'
55 56

  
56 57
    def __init__(self, arity, help=None, parsed_name=None, default=None):
57 58
        self.arity = int(arity)
......
86 87
            *self.parsed_name,
87 88
            dest=name, action=action, default=self.default, help=self.help)
88 89

  
90
    @property
91
    def lvalue(self):
92
        """A printable form of the left value when calling an argument e.g.,
93
        --left-value=right-value"""
94
        return (self.lvalue_delimiter or ' ').join(self.parsed_name or [])
95

  
89 96

  
90 97
class ConfigArgument(Argument):
91 98
    """Manage a kamaki configuration (file)"""

Also available in: Unified diff