Open
Description
Previous ID | SR-14619 |
Radar | rdar://problem/77852440 |
Original Reporter | arrizer (JIRA User) |
Type | Bug |
Status | Reopened |
Resolution |
Environment
Apple Swift version 5.4 (swiftlang-1205.0.26.9 clang-1205.0.19.55)
Target: x86_64-apple-darwin20.3.0
Additional Detail from JIRA
Votes | 1 |
Component/s | Docker |
Labels | Bug |
Assignee | administrator{{7*7}} (JIRA) |
Priority | Medium |
md5: c4db8bf685ac3e1cc286131910bf3fc4
Issue Description:
If you want to build and run a Swift command line executable that takes an argument named -c or --configuration, instead of passing it to the invocation, swift tries to interpret it as it's own argument:
swift run executablename --configuration foo
Will throw the following error:
error: The value 'foo' is invalid for '-c <configuration>'
Usage: swift run <options>
See 'run --help' for more information.
Instead of building and running executablename and passing it the argument as is.
Seems to work fine for other arguments that swift run accepts: For example, -h is passed correctly even though swift run also accepts a -h argument.