Skip to content

Commit

Permalink
Merge pull request #70 from marco-m/cosmetic-parse
Browse files Browse the repository at this point in the history
cosmetic: simplify Parser
  • Loading branch information
Eric Greer committed Jul 8, 2021
2 parents 32dc17a + 1a68f58 commit 5f3540f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions parser.go
Expand Up @@ -167,13 +167,7 @@ func (p *Parser) SetHelpTemplate(tmpl string) error {

// Parse calculates all flags and subcommands
func (p *Parser) Parse() error {

err := p.ParseArgs(os.Args[1:])
if err != nil {
return err
}
return nil

return p.ParseArgs(os.Args[1:])
}

// ShowHelp shows Help without an error message
Expand Down

0 comments on commit 5f3540f

Please sign in to comment.