Skip to content

Commit

Permalink
Merge pull request #1 from Yannic/master
Browse files Browse the repository at this point in the history
Fix issue with ignoring the template file argument.
  • Loading branch information
wlbr authored Jun 6, 2017
2 parents 023fe41 + b3ce441 commit ea6a043
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templify.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
// the embedded template will be used. Template variables supplied are:
// .Name, .Package, .Content
//
package main // import "github.com/wlbr/templify"
package main

//go:generate templify -p main -o embed.go embed.tpl

Expand Down Expand Up @@ -155,7 +155,7 @@ func formatFile(fname string) {
func main() {
flagging()

inputfile = "" //flag.Arg(0)
inputfile = flag.Arg(0)
if inputfile == "" {
fmt.Println(errors.New("No template file given as argument."))
os.Exit(1)
Expand Down

0 comments on commit ea6a043

Please sign in to comment.