Skip to content

Commit

Permalink
print help messages to stdout (#86)
Browse files Browse the repository at this point in the history
* print help messages to stdout

* remove empty line
  • Loading branch information
parrasajad authored Oct 25, 2022
1 parent b44482a commit f244b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions goflags.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ func (flagSet *FlagSet) MergeConfigFile(file string) error {

// Parse parses the flags provided to the library.
func (flagSet *FlagSet) Parse() error {
flagSet.CommandLine.SetOutput(os.Stdout)
flagSet.CommandLine.Usage = flagSet.usageFunc
_ = flagSet.CommandLine.Parse(os.Args[1:])

Expand Down

0 comments on commit f244b47

Please sign in to comment.