Skip to content

Commit

Permalink
Allow -v as shorthand for --verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagger committed Mar 2, 2018
1 parent e165eb4 commit f942a58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-sizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ func mainImplementation() error {
pflag.BoolVar(&processTags, "tags", false, "process all tags")
pflag.BoolVar(&processRemotes, "remotes", false, "process all remote-tracking branches")

pflag.Var(
pflag.VarP(
sizes.NewThresholdFlagValue(&threshold, 0),
"verbose", "report all statistics, whether concerning or not",
"verbose", "v", "report all statistics, whether concerning or not",
)
pflag.Lookup("verbose").NoOptDefVal = "true"

Expand Down

0 comments on commit f942a58

Please sign in to comment.