-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
area/v3relates to / is being considered for v3relates to / is being considered for v3kind/bugdescribes or fixes a bugdescribes or fixes a bug
Description
Hi everyone.
We're using the latest version (v3.3.3) of the library, and we noticed that when a command has one or more flags set as Required but they're not defined by the user, the library exits by printing the command's help without invoking any callback functions (OnUsageError or OnUsageError).
It's strange because the code block before and after checkAllRequiredFlags always calls deferErr = cmd.handleExitCoder(ctx, err) before returning the error, while in the case of required flags, the error is directly returned to the caller.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area/v3relates to / is being considered for v3relates to / is being considered for v3kind/bugdescribes or fixes a bugdescribes or fixes a bug