Skip to content

Commit

Permalink
made init of Command public. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
dastrobu authored Dec 5, 2018
1 parent 441e854 commit ad2779a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/parsers/Command.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ open class Command: ValueParser<Bool>, ParserNode {
/** callback invoked after all child parsers where invoked */
public var afterChildrenParsed: OnParsed?

init(name: String,
aliases: [String] = [],
description: String = "",
stopToken: String? = "--",
parsed: OnParsed? = nil,
parsers: [Parser] = [],
afterChildrenParsed: OnParsed? = nil) {
public init(name: String,
aliases: [String] = [],
description: String = "",
stopToken: String? = "--",
parsed: OnParsed? = nil,
parsers: [Parser] = [],
afterChildrenParsed: OnParsed? = nil) {

self.afterChildrenParsed = afterChildrenParsed
super.init(aliases: [name] + aliases, description: description, stopToken: stopToken, parsed: { _, path in
Expand Down

0 comments on commit ad2779a

Please sign in to comment.