Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/ArgumentParser/Parsing/CommandParser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
//
//===----------------------------------------------------------------------===//

struct CommandError: Error {
var commandStack: [ParsableCommand.Type]
public struct CommandError: Error {
public var commandStack: [ParsableCommand.Type]
var parserError: ParserError
}

Expand Down
10 changes: 5 additions & 5 deletions Sources/ArgumentParser/Usage/MessageInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@

@_implementationOnly import Foundation

enum MessageInfo {
public enum MessageInfo {
case help(text: String)
case validation(message: String, usage: String)
case other(message: String, exitCode: Int32)

init(error: Error, type: ParsableArguments.Type) {
public init(error: Error, type: ParsableArguments.Type) {
var commandStack: [ParsableCommand.Type]
var parserError: ParserError? = nil

Expand Down Expand Up @@ -93,7 +93,7 @@ enum MessageInfo {
}
}

var message: String {
public var message: String {
switch self {
case .help(text: let text):
return text
Expand All @@ -104,7 +104,7 @@ enum MessageInfo {
}
}

var fullText: String {
public var fullText: String {
switch self {
case .help(text: let text):
return text
Expand All @@ -123,7 +123,7 @@ enum MessageInfo {
}
}

var exitCode: ExitCode {
public var exitCode: ExitCode {
switch self {
case .help: return ExitCode.success
case .validation: return ExitCode.validationFailure
Expand Down