from .ldap import LdapAppError
from .. import pp
from ..argparse_actions import LimitedFloatOptionAction
-from ..argparse_actions import NonNegativeItegerOptionAction
+from ..argparse_actions import NonNegativeIntegerOptionAction
from ..config.mirror_ldap import MirrorLdapConfiguration
from ..xlate import XLATOR
app_group.add_argument(
'-L', '--limit', dest='limit', type=int, metavar=_('NUMBER'),
- action=NonNegativeItegerOptionAction,
+ action=NonNegativeIntegerOptionAction,
help=_(
'Limiting the mirroring to the first NUMBER entries. '
'This option is valid only in simulation mode.'),
setattr(namespace, self.dest, port)
# =============================================================================
-class NonNegativeItegerOptionAction(argparse.Action):
+class NonNegativeIntegerOptionAction(argparse.Action):
"""
It's an argparse action class to ensure a positive integer value.