diff --git a/pokesay.go b/pokesay.go index c4485438..95693ceb 100644 --- a/pokesay.go +++ b/pokesay.go @@ -43,6 +43,7 @@ func parseFlags() pokesay.Args { listCategories := flag.Bool("list-categories", false, "list all available categories") listNames := flag.Bool("list-names", false, "list all available names") japaneseName := flag.Bool("japanese-name", false, "print the japanese name") + unicodeBox := flg.Bool("unicode-box", false, "use unicode characters to draw the speech box") flag.Parse() var args pokesay.Args @@ -66,6 +67,7 @@ func parseFlags() pokesay.Args { Category: *category, NameToken: *name, JapaneseName: *japaneseName, + UnicodeBox: *unicodeBox, } } return args diff --git a/src/pokesay/print.go b/src/pokesay/print.go index 2df04aa3..5343ff1e 100644 --- a/src/pokesay/print.go +++ b/src/pokesay/print.go @@ -28,8 +28,10 @@ type Args struct { Category string NameToken string JapaneseName bool + Unicode bool } + // The main print function! This uses a chosen pokemon's index, names and categories, and an // embedded filesystem of cowfile data // 1. The text received from STDIN is printed inside a speech bubble