def __init__(self):
    super(BucketCreate, self).__init__()
    self.parser.prog = 'couchbase-cli bucket-create'
    group = self.parser.add_argument_group('Bucket create options')
    group.add_argument('--bucket', dest='bucket_name', metavar='<name>', required=True, help='The name of bucket to create')
    group.add_argument('--bucket-type', dest='type', metavar='<type>', required=True, choices=['couchbase', 'ephemeral', 'memcached'], help='The bucket type (couchbase, ephemeral, or memcached)')
    group.add_argument('--storage-backend', dest='storage', metavar='<storage>', choices=['couchstore', 'magma'], help='Type of storage backend (only for couchbase buckets)')
    group.add_argument('--bucket-ramsize', dest='memory_quota', metavar='<quota>', type=int, required=True, help='The amount of memory to allocate the bucket')
    group.add_argument('--bucket-replica', dest='replica_count', metavar='<num>', choices=['0', '1', '2', '3'], help='The replica count for the bucket')
    group.add_argument('--bucket-priority', dest='priority', metavar='<priority>', choices=[BUCKET_PRIORITY_LOW_STR, BUCKET_PRIORITY_HIGH_STR], help='The bucket disk io priority (low or high)')
    group.add_argument('--durability-min-level', dest='durability_min_level', metavar='<level>', choices=['none', 'majority', 'majorityAndPersistActive', 'persistToMajority'], help='The bucket durability minimum level')
    group.add_argument('--bucket-eviction-policy', dest='eviction_policy', metavar='<policy>', choices=['valueOnly', 'fullEviction', 'noEviction', 'nruEviction'], help='The bucket eviction policy')
    group.add_argument('--conflict-resolution', dest='conflict_resolution', default=None, choices=['sequence', 'timestamp'], metavar='<type>', help='The XDCR conflict resolution type (timestamp or sequence)')
    group.add_argument('--max-ttl', dest='max_ttl', default=None, type=int, metavar='<seconds>', help='Set the maximum TTL the bucket will accept. Couchbase server Enterprise Edition only.')
    group.add_argument('--compression-mode', dest='compression_mode', choices=['off', 'passive', 'active'], metavar='<mode>', help='Set the compression mode of the bucket')
    group.add_argument('--enable-flush', dest='enable_flush', metavar='<0|1>', choices=['0', '1'], help='Enable bucket flush on this bucket (0 or 1)')
    group.add_argument('--enable-index-replica', dest='replica_indexes', metavar='<0|1>', choices=['0', '1'], help='Enable replica indexes (0 or 1)')
    group.add_argument('--wait', dest='wait', action='store_true', help='Wait for bucket creation to complete')
    group.add_argument('--database-fragmentation-threshold-percentage', dest='db_frag_perc', metavar='<perc>', type=int, help='Set Database Fragmentation level percent')
    group.add_argument('--database-fragmentation-threshold-size', dest='db_frag_size', metavar='<mebibytes>', type=int, help='Set Database Fragmentation level')
    group.add_argument('--view-fragmentation-threshold-percentage', dest='view_frag_perc', metavar='<perc>', type=int, help='Set View Fragmentation level percent')
    group.add_argument('--view-fragmentation-threshold-size', dest='view_frag_size', metavar='<mebibytes>', type=int, help='Set View Fragmentation level size')
    group.add_argument('--from-hour', dest='from_hour', metavar='<quota>', type=int, help='Set start time hour')
    group.add_argument('--from-minute', dest='from_min', metavar='<quota>', type=int, help='Set start time minutes')
    group.add_argument('--to-hour', dest='to_hour', metavar='<quota>', type=int, help='Set end time hour')
    group.add_argument('--to-minute', dest='to_min', metavar='<quota>', type=int, help='Set end time minutes')
    group.add_argument('--abort-outside', dest='abort_outside', metavar='<0|1>', choices=['0', '1'], help='Allow Time period')
    group.add_argument('--parallel-db-view-compaction', dest='paralleldb_and_view_compact', metavar='<0|1>', choices=['0', '1'], help='Set parallel DB and View Compaction')
    group.add_argument('--purge-interval', dest='purge_interval', type=float, metavar='<float>', help='Sets the frequency of the tombstone purge interval')
def __init__(self):
    super(BucketCreate, self).__init__()
    self.parser.prog = 'couchbase-cli bucket-create'
    group = self.parser.add_argument_group('Bucket create options')
    group.add_argument('--bucket', dest='bucket_name', metavar='<name>', required=True, help='The name of bucket to create')
    group.add_argument('--bucket-type', dest='type', metavar='<type>', required=True, choices=['couchbase', 'ephemeral', 'memcached'], help='The bucket type (couchbase, ephemeral, or memcached)')
    group.add_argument('--storage-backend', dest='storage', metavar='<storage>', choices=['couchstore', 'magma'], help='Type of storage backend (only for couchbase buckets)')
    group.add_argument('--bucket-ramsize', dest='memory_quota', metavar='<quota>', type=int, required=True, help='The amount of memory to allocate the bucket')
    group.add_argument('--bucket-replica', dest='replica_count', metavar='<num>', choices=['0', '1', '2', '3'], help='The replica count for the bucket')
    group.add_argument('--bucket-priority', dest='priority', metavar='<priority>', choices=[BUCKET_PRIORITY_LOW_STR, BUCKET_PRIORITY_HIGH_STR], help='The bucket disk io priority (low or high)')
    group.add_argument('--durability-min-level', dest='durability_min_level', metavar='<level>', choices=['none', 'majority', 'majorityAndPersistActive', 'persistToMajority'], help='The bucket durability minimum level')
    group.add_argument('--bucket-eviction-policy', dest='eviction_policy', metavar='<policy>', choices=['valueOnly', 'fullEviction', 'noEviction', 'nruEviction'], help='The bucket eviction policy')
    group.add_argument('--conflict-resolution', dest='conflict_resolution', default=None, choices=['sequence', 'timestamp'], metavar='<type>', help='The XDCR conflict resolution type (timestamp or sequence)')
    group.add_argument('--max-ttl', dest='max_ttl', default=None, type=int, metavar='<seconds>', help='Set the maximum TTL the bucket will accept. Couchbase server Enterprise Edition only.')
    group.add_argument('--compression-mode', dest='compression_mode', choices=['off', 'passive', 'active'], metavar='<mode>', help='Set the compression mode of the bucket')
    group.add_argument('--enable-flush', dest='enable_flush', metavar='<0|1>', choices=['0', '1'], help='Enable bucket flush on this bucket (0 or 1)')
    group.add_argument('--enable-index-replica', dest='replica_indexes', metavar='<0|1>', choices=['0', '1'], help='Enable replica indexes (0 or 1)')
    group.add_argument('--wait', dest='wait', action='store_true', help='Wait for bucket creation to complete')
    group.add_argument('--database-fragmentation-threshold-percentage', dest='db_frag_perc', metavar='<perc>', type=int, help='Set Database Fragmentation level percent')
    group.add_argument('--database-fragmentation-threshold-size', dest='db_frag_size', metavar='<mebibytes>', type=int, help='Set Database Fragmentation level')
    group.add_argument('--view-fragmentation-threshold-percentage', dest='view_frag_perc', metavar='<perc>', type=int, help='Set View Fragmentation level percent')
    group.add_argument('--view-fragmentation-threshold-size', dest='view_frag_size', metavar='<mebibytes>', type=int, help='Set View Fragmentation level size')
    group.add_argument('--from-hour', dest='from_hour', metavar='<quota>', type=int, help='Set start time hour')
    group.add_argument('--from-minute', dest='from_min', metavar='<quota>', type=int, help='Set start time minutes')
    group.add_argument('--to-hour', dest='to_hour', metavar='<quota>', type=int, help='Set end time hour')
    group.add_argument('--to-minute', dest='to_min', metavar='<quota>', type=int, help='Set end time minutes')
    group.add_argument('--abort-outside', dest='abort_outside', metavar='<0|1>', choices=['0', '1'], help='Allow Time period')
    group.add_argument('--parallel-db-view-compaction', dest='paralleldb_and_view_compact', metavar='<0|1>', choices=['0', '1'], help='Set parallel DB and View Compaction')
    group.add_argument('--purge-interval', dest='purge_interval', type=float, metavar='<float>', help='Sets the frequency of the tombstone purge interval')