Documentation ¶
Overview ¶
The default version flag(-v/--version) is defined as cli.VersionFlag To run this example, open a terminal and execute the following lines: $ go install versionFlag.go $ versionFlag -V
Alternatively, the version printer at cli.VersionPrinter may be overriden To run this example, open a terminal and execute the following lines: $ go install versionFlag2.go $ versionFlag2 -v/--version
Click to show internal directories.
Click to hide internal directories.