def __init__(self):
    super(SettingPasswordPolicy, self).__init__()
    self.parser.prog = 'couchbase-cli setting-password-policy'
    group = self.parser.add_argument_group('Password Policy Settings')
    group.add_argument('--get', dest='get', action='store_true', default=False, help='Get the current password policy')
    group.add_argument('--set', dest='set', action='store_true', default=False, help='Set a new password policy')
    group.add_argument('--min-length', dest='min_length', type=int, default=None, metavar='<num>', help='Specifies the minimum password length for new passwords')
    group.add_argument('--uppercase', dest='upper_case', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must contain an upper case character')
    group.add_argument('--lowercase', dest='lower_case', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must contain a lower case character')
    group.add_argument('--digit', dest='digit', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must at least one digit')
    group.add_argument('--special-char', dest='special_char', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must at least one special character')
def __init__(self):
    super(SettingPasswordPolicy, self).__init__()
    self.parser.prog = 'couchbase-cli setting-password-policy'
    group = self.parser.add_argument_group('Password Policy Settings')
    group.add_argument('--get', dest='get', action='store_true', default=False, help='Get the current password policy')
    group.add_argument('--set', dest='set', action='store_true', default=False, help='Set a new password policy')
    group.add_argument('--min-length', dest='min_length', type=int, default=None, metavar='<num>', help='Specifies the minimum password length for new passwords')
    group.add_argument('--uppercase', dest='upper_case', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must contain an upper case character')
    group.add_argument('--lowercase', dest='lower_case', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must contain a lower case character')
    group.add_argument('--digit', dest='digit', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must at least one digit')
    group.add_argument('--special-char', dest='special_char', metavar='<0|1>', choices=['0', '1'], help='Specifies new passwords must at least one special character')