def __init__(self):
    super(SettingQuery, self).__init__()
    self.parser.prog = 'couchbase-cli setting-query'
    group = self.parser.add_argument_group('Query service settings')
    group.add_argument('--set', dest='set', action='store_true', help='Set query settings')
    group.add_argument('--get', dest='get', action='store_true', help='Retrieve current query settings')
    group.add_argument('--pipeline-batch', metavar='<num>', type=int, default=None, help='Number of items execution operators can batch.')
    group.add_argument('--pipeline-cap', metavar='<num>', type=int, default=None, help='Maximum number of items each execution operator can buffer.')
    group.add_argument('--scan-cap', metavar='<size>', type=int, default=None, help='Maximum buffer size for index scans.')
    group.add_argument('--timeout', metavar='<ms>', type=int, default=None, help='Server execution timeout.')
    group.add_argument('--prepared-limit', metavar='<max>', type=int, default=None, help='Maximum number of prepared statements.')
    group.add_argument('--completed-limit', metavar='<max>', type=int, default=None, help='Maximum number of completed requests.')
    group.add_argument('--completed-threshold', metavar='<ms>', type=int, default=None, help='Cache completed query lasting longer than this many milliseconds.')
    group.add_argument('--log-level', choices=['trace', 'debug', 'info', 'warn', 'error', 'sever', 'none'], default=None, metavar='<trace|debug|info|warn|error|server|none>', help='Log level: debug, trace, info, warn, error, severe, none.')
    group.add_argument('--max-parallelism', metavar='<max>', type=int, default=None, help='Maximum parallelism per query.')
    group.add_argument('--n1ql-feature-control', metavar='<num>', type=int, default=None, help='N1QL Feature Controls')
    group.add_argument('--temp-dir', metavar='<path>', type=str, default=None, help='This specifies the directory for temporary query data.')
    group.add_argument('--temp-dir-size', metavar='<mebibytes>', type=int, default=None, help='Specify the maximum size in mebibytes for the temporary query data directory.')
    group.add_argument('--cost-based-optimizer', metavar='<1|0>', type=str, default=None, help='Use cost-based optimizer (Developer Preview).')
    group.add_argument('--memory-quota', metavar='<mebibytes>', type=int, default=None, help='Sets the query memory quota in MiB.')
    group.add_argument('--transaction-timeout', metavar='<duration>', type=str, default=None, help='A duration string for the transaction timeout i.e (100ns, 10ms, 1s, 1m).')
    access_list_group = self.parser.add_argument_group('Query curl access settings')
    access_list_group.add_argument('--curl-access', choices=['restricted', 'unrestricted'], default=None, help='Specify either unrestricted or restricted, to determine which URLs are permitted to be accessed by the curl function.')
    access_list_group.add_argument('--allowed-urls', metavar='<urls>', type=str, default=None, help='Comma separated lists of URLs that are allowed to be accessed by the curl function.')
    access_list_group.add_argument('--disallowed-urls', metavar='<urls>', type=str, default=None, help='Comma separated lists of URLs that are disallowed to be accessed by the curl function.')
def __init__(self):
    super(SettingQuery, self).__init__()
    self.parser.prog = 'couchbase-cli setting-query'
    group = self.parser.add_argument_group('Query service settings')
    group.add_argument('--set', dest='set', action='store_true', help='Set query settings')
    group.add_argument('--get', dest='get', action='store_true', help='Retrieve current query settings')
    group.add_argument('--pipeline-batch', metavar='<num>', type=int, default=None, help='Number of items execution operators can batch.')
    group.add_argument('--pipeline-cap', metavar='<num>', type=int, default=None, help='Maximum number of items each execution operator can buffer.')
    group.add_argument('--scan-cap', metavar='<size>', type=int, default=None, help='Maximum buffer size for index scans.')
    group.add_argument('--timeout', metavar='<ms>', type=int, default=None, help='Server execution timeout.')
    group.add_argument('--prepared-limit', metavar='<max>', type=int, default=None, help='Maximum number of prepared statements.')
    group.add_argument('--completed-limit', metavar='<max>', type=int, default=None, help='Maximum number of completed requests.')
    group.add_argument('--completed-threshold', metavar='<ms>', type=int, default=None, help='Cache completed query lasting longer than this many milliseconds.')
    group.add_argument('--log-level', choices=['trace', 'debug', 'info', 'warn', 'error', 'sever', 'none'], default=None, metavar='<trace|debug|info|warn|error|server|none>', help='Log level: debug, trace, info, warn, error, severe, none.')
    group.add_argument('--max-parallelism', metavar='<max>', type=int, default=None, help='Maximum parallelism per query.')
    group.add_argument('--n1ql-feature-control', metavar='<num>', type=int, default=None, help='N1QL Feature Controls')
    group.add_argument('--temp-dir', metavar='<path>', type=str, default=None, help='This specifies the directory for temporary query data.')
    group.add_argument('--temp-dir-size', metavar='<mebibytes>', type=int, default=None, help='Specify the maximum size in mebibytes for the temporary query data directory.')
    group.add_argument('--cost-based-optimizer', metavar='<1|0>', type=str, default=None, help='Use cost-based optimizer (Developer Preview).')
    group.add_argument('--memory-quota', metavar='<mebibytes>', type=int, default=None, help='Sets the query memory quota in MiB.')
    group.add_argument('--transaction-timeout', metavar='<duration>', type=str, default=None, help='A duration string for the transaction timeout i.e (100ns, 10ms, 1s, 1m).')
    access_list_group = self.parser.add_argument_group('Query curl access settings')
    access_list_group.add_argument('--curl-access', choices=['restricted', 'unrestricted'], default=None, help='Specify either unrestricted or restricted, to determine which URLs are permitted to be accessed by the curl function.')
    access_list_group.add_argument('--allowed-urls', metavar='<urls>', type=str, default=None, help='Comma separated lists of URLs that are allowed to be accessed by the curl function.')
    access_list_group.add_argument('--disallowed-urls', metavar='<urls>', type=str, default=None, help='Comma separated lists of URLs that are disallowed to be accessed by the curl function.')