ExpressibleByArgument, CaseIterable for array of enum not listing options during failure #401
Closed
2 tasks done
Labels
enhancement
New feature or request
Similar to #344, when a
ExpressibleByArgument & CaseIterable
argument from user has incorrect value, the candidate values are shown in the error message except when said value is a member of an array.ArgumentParser version:
1.0.3
.Swift version:
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Checklist
main
branch of this packageSteps to Reproduce
With the following program:
Build and run with a wrong value for
noodle
. For a SwiftPM exampleExpected behavior
The error message should include candidate values for
noodle
like:Actual behavior
The output does not include candidate values for
noodle
The text was updated successfully, but these errors were encountered: