def __init__(self):
    super(SettingIndex, self).__init__()
    self.parser.prog = 'couchbase-cli setting-index'
    group = self.parser.add_argument_group('Index settings')
    group.add_argument('--index-max-rollback-points', dest='max_rollback', metavar='<num>', type=int, help='Max rollback points')
    group.add_argument('--index-stable-snapshot-interval', dest='stable_snap', type=int, metavar='<seconds>', help='Stable snapshot interval in seconds')
    group.add_argument('--index-memory-snapshot-interval', dest='mem_snap', metavar='<ms>', type=int, help='Stable snapshot interval in milliseconds')
    group.add_argument('--index-storage-setting', dest='storage_mode', metavar='<mode>', choices=['default', 'memopt'], help='The index storage backend')
    group.add_argument('--index-threads', dest='threads', metavar='<num>', type=int, help='The number of indexer threads')
    group.add_argument('--index-log-level', dest='log_level', metavar='<level>', choices=['debug', 'silent', 'fatal', 'error', 'warn', 'info', 'verbose', 'timing', 'trace'], help='The indexer log level')
    group.add_argument('--replicas', metavar='<num>', type=int, help='Number of index replicas')
    group.add_argument('--optimize-placement', metavar='<1|0>', type=str, help='Optimize index placement on a rebalance.')
def __init__(self):
    super(SettingIndex, self).__init__()
    self.parser.prog = 'couchbase-cli setting-index'
    group = self.parser.add_argument_group('Index settings')
    group.add_argument('--index-max-rollback-points', dest='max_rollback', metavar='<num>', type=int, help='Max rollback points')
    group.add_argument('--index-stable-snapshot-interval', dest='stable_snap', type=int, metavar='<seconds>', help='Stable snapshot interval in seconds')
    group.add_argument('--index-memory-snapshot-interval', dest='mem_snap', metavar='<ms>', type=int, help='Stable snapshot interval in milliseconds')
    group.add_argument('--index-storage-setting', dest='storage_mode', metavar='<mode>', choices=['default', 'memopt'], help='The index storage backend')
    group.add_argument('--index-threads', dest='threads', metavar='<num>', type=int, help='The number of indexer threads')
    group.add_argument('--index-log-level', dest='log_level', metavar='<level>', choices=['debug', 'silent', 'fatal', 'error', 'warn', 'info', 'verbose', 'timing', 'trace'], help='The indexer log level')
    group.add_argument('--replicas', metavar='<num>', type=int, help='Number of index replicas')
    group.add_argument('--optimize-placement', metavar='<1|0>', type=str, help='Optimize index placement on a rebalance.')