Documentation ¶
Overview ¶
Package flagutil is a collection of helper functions for Kythe binaries using the flag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleUsage ¶
SimpleUsage returns a basic flag.Usage function that prints the given description and list of arguments in the following format:
Usage: binary <arg0> <arg1> ... <argN> <description> <flag.PrintDefaults()>
func UsageError ¶
func UsageError(msg string)
UsageError prints msg to stderr, calls flag.Usage, and exits the program unsuccessfully.
func UsageErrorf ¶
func UsageErrorf(str string, vals ...interface{})
UsageErrorf prints str formatted with the given vals to stderr, calls flag.Usage, and exits the program unsuccessfully.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.