Skip to content

Commit

Permalink
Merge pull request #55 from younata/master
Browse files Browse the repository at this point in the history
Expose a public initializer to NoOptions so that tests can be written for commands that take NoOptions
  • Loading branch information
mdiep committed Feb 11, 2016
2 parents 0162c5d + 77acec5 commit f216157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Commandant/Option.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public protocol OptionsType {

/// An `OptionsType` that has no options.
public struct NoOptions<ClientError: ErrorType>: OptionsType {
private init() {}
public init() {}

public static func evaluate(m: CommandMode) -> Result<NoOptions, CommandantError<ClientError>> {
return .Success(NoOptions())
Expand Down

0 comments on commit f216157

Please # to comment.