package main

import (
  "github.com/simon-engledew/gocmdpev/gopev"
  "gopkg.in/alecthomas/kingpin.v2"
  "io/ioutil"
  "github.com/fatih/color"
  "log"
  "os"
)

func main() {
  kingpin.CommandLine.HelpFlag.Short('h')
  kingpin.CommandLine.Version("1.0.0")
  kingpin.CommandLine.VersionFlag.Short('v')
  kingpin.Parse()

  buffer, err := ioutil.ReadAll(os.Stdin)

  if err != nil {
    log.Fatalf("%v", err)
  }

  // fmt.Println(string(buffer))

  err = gopev.Visualize(color.Output, buffer)

  if err != nil {
    log.Fatalf("%v", err)
  }
}

package main

import (
  "github.com/simon-engledew/gocmdpev/gopev"
  "io/ioutil"
  "github.com/fatih/color"
  "log"
  "os"
)

func main() {
  buffer, err := ioutil.ReadAll(os.Stdin)

  if err != nil {
    log.Fatalf("%v", err)
  }

  // fmt.Println(string(buffer))

  err = gopev.Visualize(color.Output, buffer)

  if err != nil {
    log.Fatalf("%v", err)
  }
}

--- 
+++ 
@@ -2,6 +2,7 @@
 
 import (
   "github.com/simon-engledew/gocmdpev/gopev"
+  "gopkg.in/alecthomas/kingpin.v2"
   "io/ioutil"
   "github.com/fatih/color"
   "log"
@@ -9,6 +10,11 @@
 )
 
 func main() {
+  kingpin.CommandLine.HelpFlag.Short('h')
+  kingpin.CommandLine.Version("1.0.0")
+  kingpin.CommandLine.VersionFlag.Short('v')
+  kingpin.Parse()
+
   buffer, err := ioutil.ReadAll(os.Stdin)
 
   if err != nil {
Use kingpin to add a -v/-h to use as Homebrew's test method
