Merge pull request #82 from mcarmonaa/improvement/linguist-version

added linguist version to CLI
This commit is contained in:
Alfredo Beaumont 2017-07-18 16:59:40 +02:00 committed by GitHub
commit 200c153302

View File

@ -11,6 +11,7 @@ import (
"path/filepath" "path/filepath"
"gopkg.in/src-d/enry.v1" "gopkg.in/src-d/enry.v1"
"gopkg.in/src-d/enry.v1/data"
) )
var ( var (
@ -112,13 +113,13 @@ func main() {
func usage() { func usage() {
fmt.Fprintf( fmt.Fprintf(
os.Stderr, os.Stderr,
` %[1]s %[2]s build: %[3]s commit: %[4]s ` %[1]s %[2]s build: %[3]s commit: %[4]s, based on linguist commit: %[5]s
%[1]s, A simple (and faster) implementation of github/linguist %[1]s, A simple (and faster) implementation of github/linguist
usage: %[1]s <path> usage: %[1]s <path>
%[1]s [-json] [-breakdown] <path> %[1]s [-json] [-breakdown] <path>
%[1]s [-json] [-breakdown] %[1]s [-json] [-breakdown]
`, `,
os.Args[0], version, build, commit, os.Args[0], version, build, commit, data.LinguistCommit[:7],
) )
} }