Skip to content

Commit bf6b13e

Browse files
authored
Merge pull request #46 from github/fix-error-formatting
Fix the formatting of argument parsing errors.
2 parents dadb793 + 1417a27 commit bf6b13e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/root.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ func (f *rootFlagFields) Init(cmd *cobra.Command) error {
3636
cmd.PersistentFlags().StringVar(&f.cacheDir, "cache-dir", defaultCacheDir, "The path to a local directory to cache the Action in.")
3737

3838
cmd.SetFlagErrorFunc(func(cmd *cobra.Command, err error) error {
39-
cmd.PrintErr(err)
39+
cmd.PrintErrln(err)
40+
cmd.PrintErrln()
4041
cmd.PrintErr(cmd.UsageString())
4142
return SilentErr
4243
})

0 commit comments

Comments
 (0)