Skip to content

Commit 29b22c8

Browse files
sergiy-petrovrubenv
authored andcommitted
add HelpWriter and ErrorWriter (#2)
* add HelpWriter and ErrorWriter
1 parent 5fd3db0 commit 29b22c8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sql-migrate/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ func realMain() int {
3838
return &SkipCommand{}, nil
3939
},
4040
},
41-
HelpFunc: cli.BasicHelpFunc("sql-migrate"),
42-
Version: GetVersion(),
41+
HelpFunc: cli.BasicHelpFunc("sql-migrate"),
42+
HelpWriter: os.Stdout,
43+
ErrorWriter: os.Stderr,
44+
Version: GetVersion(),
4345
}
4446

4547
exitCode, err := cli.Run()

0 commit comments

Comments
 (0)