Skip to content

Commit f942a58

Browse files
committed
Allow -v as shorthand for --verbose
1 parent e165eb4 commit f942a58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-sizer.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ func mainImplementation() error {
6464
pflag.BoolVar(&processTags, "tags", false, "process all tags")
6565
pflag.BoolVar(&processRemotes, "remotes", false, "process all remote-tracking branches")
6666

67-
pflag.Var(
67+
pflag.VarP(
6868
sizes.NewThresholdFlagValue(&threshold, 0),
69-
"verbose", "report all statistics, whether concerning or not",
69+
"verbose", "v", "report all statistics, whether concerning or not",
7070
)
7171
pflag.Lookup("verbose").NoOptDefVal = "true"
7272

0 commit comments

Comments
 (0)