def build_cli_parser():
parser = optparse.OptionParser(usage="%prog [options]", description="Dump Binary Info")
# for each supported output type, add an option
#
parser.add_option("-c", "--cburl", action="store", default=None, dest="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("-t", "--installer-type", action="store", default=None, dest="type",
help="Installer type; must be one of [WindowsEXE|WindowsMSI]")
parser.add_option("-f", "--filename", action="store", default=None, dest="filename",
help="Filename to save the installer package to")
parser.add_option("-g", "--sensor-group", action="store", default="1", dest="group",
help="Sensor group ID of the group to download an installer for")
return parser
download_sensor_installer.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录