Skip to content

Instantly share code, notes, and snippets.

@yurenchen000
Created December 26, 2019 04:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurenchen000/3fc9472b51cbb80aa9d0fdbc1be0bdb5 to your computer and use it in GitHub Desktop.
Save yurenchen000/3fc9472b51cbb80aa9d0fdbc1be0bdb5 to your computer and use it in GitHub Desktop.
goang flag hide cmdline usage & parse err
// golang hide cmdline usage & parse err
flag.CommandLine.SetOutput(ioutil.Discard)
flag.Usage = func() { }
flag.Parse()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment