def build_cli_parser():
parser = optparse.OptionParser(usage="%prog [options]", description="Display information about a particular feed report")
# for each supported output type, add an option
#
parser.add_option("-c", "--cburl", action="store", default=None, dest="server_url",
help="CB server's URL. e.g., http://127.0.0.1 ")
parser.add_option("-a", "--apitoken", action="store", default=None, dest="token",
help="API Token for Carbon Black server")
parser.add_option("-n", "--no-ssl-verify", action="store_false", default=True, dest="ssl_verify",
help="Do not verify server SSL certificate.")
parser.add_option("-i", "--id", action="store", default=None, dest="feedid",
help="Id of feed of which the specified report is a part of")
parser.add_option("-r", "--reportid", action="store", default=None, dest="reportid",
help="Id of report to query; this may be alphanumeric")
return parser
评论列表
文章目录