We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
md5: 42109291edaee23fe32eda07d3999490
Issue Description:
Test code:
import ArgumentParser import Foundation @main final class Example: ParsableCommand { enum MyError: CustomNSError { case exampleError var errorCode: Int { 23 } var errorUserInfo: [String: Any] { [NSLocalizedDescriptionKey: "Hello World"] } } func run() throws { throw MyError.exampleError } }
Expected Output: "Error: Hello World" with exit status code 23
Actual Output: "Error: exampleError" with exit status code 0
This worked correctly previously …
Tested Using Swift Argument Parser v0.3.2: Exit status code: 23 Output: "Error: Hello World"
Tested Using Swift Argument Parser v1.0.2: Exit status code: 1 Output: "Error: exampleError"
… so this appears to be a regression.
The text was updated successfully, but these errors were encountered:
Comment by Christopher Fuller (JIRA)
Closing as invalid since this has been covered in the Argument Parser repo.
Sorry, something went wrong.
Relevant PR … apple/swift-argument-parser#276
No branches or pull requests
Additional Detail from JIRA
md5: 42109291edaee23fe32eda07d3999490
Issue Description:
Test code:
Expected Output:
"Error: Hello World" with exit status code 23
Actual Output:
"Error: exampleError" with exit status code 0
This worked correctly previously …
Tested Using Swift Argument Parser v0.3.2:
Exit status code: 23
Output: "Error: Hello World"
Tested Using Swift Argument Parser v1.0.2:
Exit status code: 1
Output: "Error: exampleError"
… so this appears to be a regression.
The text was updated successfully, but these errors were encountered: