3 ms·
Error: The value 'ZZZ' is invalid for '<high-value>' That is an awful default error for validating the type. The program knows it failed to parse as an Int bu
by friday99 7y ago
Error: The value 'ZZZ' is invalid for '<high-value>'
That is an awful default error for validating the type. The program knows it failed to parse as an Int but doesn't tell you anything about that.
Error: The value 'ZZZ' is invalid for '<high-value>' of type Int
Also, the help should automatically tell you the expected types as well.
ARGUMENTS:
<high-value>: Int The highest value to pick.
- thedirt0115 7y agoThere's an issue open for this, so they'll probably have it pretty soon: https://github.com/apple/swift-argument-parser/issues/8 https://github.com/apple/swift-argument-parser/issues/8