Skip to content

Commit

Permalink
fix: apply suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 authored and actions-user committed Jun 16, 2020
1 parent b44eb3c commit e1e1446
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/params/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ func New(opts ...Option) *parser {
return p
}

// Parse parses command-line argument and returns parsed data.
// If parse fails, returns an error but when there is help option, returns nil and true.
// Parse parses command-line argument and returns parsed data and whether there is a help option or not and error.
func (p *parser) Parse() (Data, bool, error) {
f := flag.NewFlagSet(filepath.Base(os.Args[0]), flag.ContinueOnError)

Expand Down

0 comments on commit e1e1446

Please sign in to comment.