|
|
|
@ -96,6 +96,9 @@ var helpSubcommand = Command{
|
|
|
|
|
// Prints help for the App
|
|
|
|
|
var HelpPrinter = printHelp
|
|
|
|
|
|
|
|
|
|
// Prints version for the App
|
|
|
|
|
var VersionPrinter = printVersion
|
|
|
|
|
|
|
|
|
|
func ShowAppHelp(c *Context) {
|
|
|
|
|
HelpPrinter(AppHelpTemplate, c.App)
|
|
|
|
|
}
|
|
|
|
@ -133,6 +136,10 @@ func ShowSubcommandHelp(c *Context) {
|
|
|
|
|
|
|
|
|
|
// Prints the version number of the App
|
|
|
|
|
func ShowVersion(c *Context) {
|
|
|
|
|
VersionPrinter(c)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func printVersion(c *Context) {
|
|
|
|
|
fmt.Printf("%v version %v\n", c.App.Name, c.App.Version)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|