Skip to content

Commit

Permalink
add HelpWriter and ErrorWriter (#2)
Browse files Browse the repository at this point in the history
* add HelpWriter and ErrorWriter
  • Loading branch information
sergiy-petrov authored and rubenv committed Jun 12, 2024
1 parent 5fd3db0 commit 29b22c8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sql-migrate/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ func realMain() int {
return &SkipCommand{}, nil
},
},
HelpFunc: cli.BasicHelpFunc("sql-migrate"),
Version: GetVersion(),
HelpFunc: cli.BasicHelpFunc("sql-migrate"),
HelpWriter: os.Stdout,
ErrorWriter: os.Stderr,
Version: GetVersion(),
}

exitCode, err := cli.Run()
Expand Down

0 comments on commit 29b22c8

Please sign in to comment.