vmware / vmware-aria-operations-integration-sdk

The VMware Aria Operations Integration SDK contains libraries, tools, and documentation for developing Management Packs for VMware Aria Operations. It is intended to make creating a Management Pack simple and fast, while allowing developers to use the language of their choice.
https://vmware.github.io/vmware-aria-operations-integration-sdk/
Apache License 2.0
13 stars 6 forks source link

CLI arguments range error message is too long #246

Closed quirogas closed 8 months ago

quirogas commented 11 months ago

Describe the bug

Arguments with ranges display all possible ranges when the choice is outside of the range.

Reproduction steps

mp-test --port -1

Expected behavior

usage: mp-test [-h] [-V] [-p PATH] [-c CONNECTION] [-v [0-3]] [-P [0, 65536]] {connect,collect,long-run,endpoint_urls,adapter_definition,version,wait} ... mp-test: error: argument -P/--port: invalid choice: -1 (choose from 0, 65536)

Additional context

No response