When using ExpressibleByArgument for an enum @option, neither help nor error message correctly shows available options.
ArgumentParser: main
Swift version: Apple Swift version 5.3.1
Checklist
Steps to Reproduce
Create an option:
enum Config : String, ExpressibleByArgument, CaseIterable
{
case ios, mac, simulator
}
@Option(help: "Build configuration")
var config : [Config] = [.ios]
See command help screen using -h, or use the config option with an illegal value:
cli command --config invalid
Expected behavior
- Help should show options available
- Error message should show valid options
Actual behavior
- Help Provides no options.
- Error provides no useful options:
Error: The value 'invalid' is invalid for '--config <config>'
Usage: cli command [--config <config> ...]
See 'cli command --help' for more information.
When using ExpressibleByArgument for an enum @option, neither help nor error message correctly shows available options.
ArgumentParser: main
Swift version: Apple Swift version 5.3.1
Checklist
mainbranch of this packageSteps to Reproduce
Create an option:
See command help screen using -h, or use the config option with an illegal value:
Expected behavior
Actual behavior