Skip to content

Commit e69f8bc

Browse files
committed
Remove goal default and make required
1 parent e356fbd commit e69f8bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/commitstat/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ func init() {
109109
rootCmd.Flags().StringVar(&regex, "regex", "", "regex to parse the stat (optional)")
110110
rootCmd.Flags().StringVar(&statName, "name", "", "name for the stat")
111111
rootCmd.MarkFlagRequired("name")
112-
rootCmd.Flags().StringVar(&goal, "goal", "decrease", "goal for the stat")
112+
rootCmd.Flags().StringVar(&goal, "goal", "", "goal for the stat (\"increase\" or \"decrease\")")
113+
rootCmd.MarkFlagRequired("goal")
113114
}
114115

115116
func printErrAndExitFailure(err error) {

0 commit comments

Comments
 (0)