Skip to content

Commit

Permalink
Merge pull request #12 from aomathwift/remove-warning
Browse files Browse the repository at this point in the history
Remove warning
  • Loading branch information
yonaskolb authored Oct 24, 2021
2 parents 4387223 + 6d01575 commit 8fd6f95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/GenesisCLI/GenerateCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class GenerateCommand: Command {
let name = "generate"
let shortDescription = "Generates files based on a template"

let templatePath = Parameter()
let templatePath = Param<String>()

let optionPath = Key<String>("-p", "--option-path", description: "Path to a yaml or json file containing options")

Expand Down
2 changes: 1 addition & 1 deletion Sources/GenesisKit/TemplateGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class TemplateGenerator {
}

fileprivate func getOptionValue(_ option: Option, context: inout Context) throws {
if let value = context[option.name] {
if context[option.name] != nil {
// found existing option
return
}
Expand Down

0 comments on commit 8fd6f95

Please sign in to comment.