Skip to content

Commit

Permalink
Fix cmd/yarnrunner.go
Browse files Browse the repository at this point in the history
  • Loading branch information
DrJosh9000 committed May 8, 2023
1 parent 7896d76 commit c4a2610
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/yarnrunner.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
// Quick usage from the root of the repo:
//
// go run -tags example cmd/yarnrunner.go \
// --program=testdata/Example.yarn.yarnc \
// --strings=testdata/Example.yarn.csv
// --program=testdata/Example.yarn.yarnc
//
// The "example" build tag is used to prevent this being installed to ~/go/bin
// if you use the go get command. If for some reason you want to install it to
Expand All @@ -39,12 +38,11 @@ import (

func main() {
yarncFilename := flag.String("program", "", "File name of program (e.g. Example.yarn.yarnc)")
csvFilename := flag.String("strings", "", "File name of string table (e.g. Example.yarn.csv)")
startNode := flag.String("start", "Start", "Name of the node to run")
langCode := flag.String("lang", "en-AU", "Language tag (BCP 47)")
flag.Parse()

program, stringTable, err := yarn.LoadFiles(*yarncFilename, *csvFilename, *langCode)
program, stringTable, err := yarn.LoadFiles(*yarncFilename, *langCode)
if err != nil {
log.Fatalf("Loading files: %v", err)
}
Expand Down

0 comments on commit c4a2610

Please sign in to comment.