Lots of regression in exit codes [from 1.12 to master]rr #26152
Labels
kind/bug
Bugs are bugs. The cause may or may not be known at triage time so debugging may be needed.
version/master
version/1.12
Milestone
Under docker-1.10, flag.go exits 125 when a command-line flag is missing a required argument. With docker 1.12 most commands do so... except for a seemingly random few:
(List is not meant to be exhaustive; there are more).
If my diagnosis is correct, root cause is that as part of the cobra migration in June some NewXxxCommand() functions were added with this line:
...and some were not:
If this analysis is correct, I hope there's a less duplicationy way to solve this than adding cmd.SetFlagErrorFunc() to each source file!
@vdemeester @dnephin
The text was updated successfully, but these errors were encountered: