Functions
The following functions are available globally.
-
Fail, print the error message and exit the application Call this method when you want to exit and print an error message
Declaration
Swift
public func fail(statusCode: Int, errorMessage: String) -> NeverParameters
statusCodethe status code to report
errorMessageadditional error message to print
-
Fail, print the help message and exit the application Call this method when you want to exit and print the help message
Declaration
Swift
public func fail(statusCode: Int, command: Command) -> NeverParameters
statusCodethe status code to report
commandthe command whose help message should be printed
-
Check for flags equality
View on GitHub
Functions Reference