Skip to content

ExtraParameter ErrorCode is never set #18

Description

@tardypad

It seems that the ErrorCode ExtraParameter "a value was set to a long flag" is never being set.

The related function extraArg is referenced nowhere

func extraArg(o Option, value string) *Error {

Testing setting a value to a long boolean flag returns the error "invalid value for bool" with the Invalid ErrorCode

getopt/bool.go

Line 21 in 6173d3f

return fmt.Errorf("invalid value for bool %s: %q", opt.Name(), value)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions