CleanExit
An error type that represents a clean (i.e. non-error state) exit of the utility.
struct CleanExit
Throwing a CleanExit
instance from a validate
or run
method, or passing it to exit(with:)
, exits the program with exit code 0
.
An error type that represents a clean (i.e. non-error state) exit of the utility.
struct CleanExit
Throwing a CleanExit
instance from a validate
or run
method, or passing it to exit(with:)
, exits the program with exit code 0
.
import ArgumentParser
Straightforward, type-safe argument parsing for Swift.
Provide helpful feedback to users when things go wrong.
struct ValidationError
An error type that is presented to the user as an error with parsing their command-line input.
struct ExitCode
An error type that only includes an exit code.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Sendable
A type whose values can safely be passed across concurrency domains by copying.
static func helpRequest(_ command: ParsableCommand) -> CleanExit
Treat this error as a help request and display the full help message.
static func helpRequest(_ type: ParsableCommand.Type? = nil) -> CleanExit
Treat this error as a help request and display the full help message.
static func message(_ text: String) -> CleanExit
Treat this error as a clean exit with the given message.
var description: String { get }
var localizedDescription: String { get }
Retrieve the localized description for this error.