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
+32-7Lines changed: 32 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,6 @@ import (
5
5
"fmt"
6
6
"os"
7
7
"regexp"
8
-
"sort"
9
8
"strings"
10
9
11
10
"github.com/hhatto/gocloc"
@@ -43,7 +42,7 @@ var rowLen = 79
43
42
// It is necessary to use notation that follows go-flags.
44
43
typeCmdOptionsstruct {
45
44
Byfilebool`long:"by-file" description:"report results for every encountered source file"`
46
-
SortTagstring`long:"sort" default:"code" description:"sort based on a certain column"`
45
+
SortTagstring`long:"sort" default:"code" description:"sort based on a certain column" choice:"name" choice:"files" choice:"blank" choice:"comment" choice:"code"`
47
46
OutputTypestring`long:"output-type" default:"default" description:"output type [values: default,cloc-xml,sloccount,json]"`
48
47
ExcludeExtstring`long:"exclude-ext" description:"exclude file name extensions (separated commas)"`
49
48
IncludeLangstring`long:"include-lang" description:"include language name (separated commas)"`
@@ -103,7 +102,7 @@ func (o *outputBuilder) WriteFooter() {
0 commit comments