from .ldap import LdapAppError, FatalLDAPError
from .ldap import BaseLdapApplication
-__version__ = '0.5.8'
+__version__ = '0.5.9'
LOG = logging.getLogger(__name__)
_ = XLATOR.gettext
if not self.deactivate:
help_txt += help_default
remove_mode_group.add_argument(
- '-R', '--remove', dest="deactivate", action='store_false', help=help_txt)
+ '-R', '--remove', dest="remove", action='store_true', help=help_txt)
remove_group.add_argument(
'users', nargs='*', metavar=_('USER'),
LOG.error(_("No users to remove given."))
self.exit(1)
- self.deactivate = getattr(self.args, 'deactivate', False)
+ deactivate = bool(getattr(self.args, 'remove', False))
+ remove = bool(getattr(self.args, 'remove', False))
+ if remove:
+ self.deactivate = False
self.given_users = given_users