In cases that only have an error result, I prefer:
`if _, err := flagParser.Parse(); err != nil {`
The main advantage is that the err variable does not pollute the scope of the function (think of commenting/deleting this line at some point and getting "undeclared err" in some line below, because you could not use `:=` there) and it is a bit more condense.