swift-argument-parser
swift-argument-parser copied to clipboard
Automatically document error codes
Just as SAP creates and populates help from its property wrappers, I believe it would be useful to have a way to document exit codes produced by the command line utility and incorporate them into help.
Even though there are Unix standards like sysexit.h, the developer may wish to:
- Express which exit codes are produced
- Document custom exit codes