You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gocloc/main.go
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ import (
8
8
"strings"
9
9
10
10
"github.com/hhatto/gocloc"
11
-
flags "github.com/jessevdk/go-flags"
11
+
"github.com/jessevdk/go-flags"
12
12
)
13
13
14
14
// Version is version string for gocloc command
@@ -41,7 +41,7 @@ var rowLen = 79
41
41
// CmdOptions is gocloc command options.
42
42
// It is necessary to use notation that follows go-flags.
43
43
typeCmdOptionsstruct {
44
-
Byfilebool`long:"by-file" description:"report results for every encountered source file"`
44
+
ByFilebool`long:"by-file" description:"report results for every encountered source file"`
45
45
SortTagstring`long:"sort" default:"code" description:"sort based on a certain column" choice:"name" choice:"files" choice:"blank" choice:"comment" choice:"code"`
46
46
OutputTypestring`long:"output-type" default:"default" description:"output type [values: default,cloc-xml,sloccount,json]"`
47
47
ExcludeExtstring`long:"exclude-ext" description:"exclude file name extensions (separated commas)"`
@@ -73,7 +73,7 @@ func (o *outputBuilder) WriteHeader() {
73
73
headerLen:=28
74
74
header:=languageHeader
75
75
76
-
ifo.opts.Byfile {
76
+
ifo.opts.ByFile {
77
77
headerLen=maxPathLen+1
78
78
rowLen=maxPathLen+len(commonHeader) +2
79
79
header=fileHeader
@@ -91,7 +91,7 @@ func (o *outputBuilder) WriteFooter() {
0 commit comments