Improve the documentation of setattr/addattr

https://fedorahosted.org/freeipa/ticket/245
This commit is contained in:
Jakub Hrozek 2010-11-15 15:37:40 +01:00 committed by Rob Crittenden
parent d9dd838014
commit 3682a1c385

View File

@ -283,12 +283,13 @@ class LDAPObject(Object):
_attr_options = (
Str('addattr*', validate_add_attribute,
cli_name='addattr',
doc=_('Add an attribute/value pair. Format is attr=value'),
doc=_('Add an attribute/value pair. Format is attr=value. The attribute must be part of the schema.'),
exclude='webui',
),
Str('setattr*', validate_set_attribute,
cli_name='setattr',
doc=_('Set an attribute to an name/value pair. Format is attr=value'),
doc=_("""Set an attribute to an name/value pair. Format is attr=value.
For multivalued attributes, the command replaces the values already present."""),
exclude='webui',
),
)