-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[SR-785] Command line argument parsing: swift-test should print help when passed -h, --help #5318
Comments
I also wonder if there's a reason why `swift-build` takes `--help` but not `-h`? |
SwiftPM cannot depend on external modules due to: 1) Apple Legal review is required, which takes months |
Added `-h` |
Makes sense! Sounds like the best way forward here is to work to have |
For this I'd like to see a new module Usage. However I really like the precision of our current model where we use enums to represent the possibilities. I feel it makes the most of Swift. I'm sure a portion can be extracted out still. |
Should be fixed by #168 |
Additional Detail from JIRA
md5: 3add60f1bf6a3cfdae084373421fe1a7
Issue Description:
swift-build
prints instructions on how to use it when passed--help
:swift-test
does not do the same:The underlying problem is that the command-line parsing for
swift-build
is not shared withswift-test
. It seems like we should share a generic command line argument parsing mechanism.I know a great deal of command line argument parsing modules exist on GitHub. https://github.com/kylef/Commander in particular is installable via SwiftPM. Perhaps we should consider using an existing solution?
The text was updated successfully, but these errors were encountered: