Printing out version numbers
This commit is contained in:
13
help.go
13
help.go
@@ -1,8 +1,11 @@
|
||||
package cli
|
||||
|
||||
import "os"
|
||||
import "text/tabwriter"
|
||||
import "text/template"
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"text/tabwriter"
|
||||
"text/template"
|
||||
)
|
||||
|
||||
var helpCommand = Command{
|
||||
Name: "help",
|
||||
@@ -32,3 +35,7 @@ GLOBAL OPTIONS:
|
||||
w.Flush()
|
||||
},
|
||||
}
|
||||
|
||||
func showVersion(c *Context) {
|
||||
fmt.Printf("%v version %v\n", c.App.Name, c.App.Version)
|
||||
}
|
||||
|
Reference in New Issue
Block a user