mirror of
https://github.com/openkmip/pykmip
synced 2025-12-14 23:33:19 +00:00
demos: 'versions' argument for 'discover-versions' demo
This commit is contained in:
@@ -199,6 +199,16 @@ def build_cli_parser(operation=None):
|
||||
help=("Type of the object to register. Supported types include: "
|
||||
"CERTIFICATE, PRIVATE_KEY, PUBLIC_KEY, SYMMETRIC_KEY, "
|
||||
"SECRET_DATA"))
|
||||
elif operation is Operation.DISCOVER_VERSIONS:
|
||||
parser.add_option(
|
||||
"-v",
|
||||
"--protocol-versions",
|
||||
action="store",
|
||||
type="str",
|
||||
default=None,
|
||||
dest="protocol_versions",
|
||||
help=("Protocol versions supported by client. "
|
||||
"ex. '1.1,1.2 1.3'"))
|
||||
|
||||
return parser
|
||||
|
||||
|
||||
Reference in New Issue
Block a user