title: Hide golang messages
body: <p>Is it possible to hide the golang messages? I show you an example:</p>
  
  <pre><code>package main
  
  import (
      "flag"
      "fmt"
      "os"
  )
  
  var signal = flag.String("z", "", "")
  
  func main() {
  
      flag.Usage = func() {
          fmt.Printf("Usage: kata -z &lt;command&gt;\n\n")
          fmt.Printf("    test\tTesting\n")
          fmt.Printf("    version\tVersion\n")
          fmt.Println("")
      }
  
      flag.Parse()
      if len(os.Args) != 3 {
          flag.Usage()
          os.Exit(1)
      }
  
      switch *signal {
      case "test":
          fmt.Println("testing...")
      case "version":
          fmt.Println("0.0.1")
      default:
          fmt.Println("incorrect...")
      }
  }
  </code></pre>
  
  <p>This app show to user the next information:
  <a href="https://play.golang.org/p/oYwADdmlAJ" rel="nofollow noreferrer">https://play.golang.org/p/oYwADdmlAJ</a></p>
  
  <p>But if I write in the command-line <code>kata -flag</code>, the system returns: <code>flag needs an argument:</code> or <code>flag provided but not defined:</code> and the information that I show you before.</p>
  
  <p>I would like to know if it's possible to hide the golang messages?</p>
  
  <p>P.S.: If you don't understand my question, I can rephrase.</p>