getopt icon indicating copy to clipboard operation
getopt copied to clipboard

getopt style option parsing for Go

Results 8 getopt issues
Sort by recently updated
recently updated
newest added

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 https://github.com/pborman/getopt/blob/6173d3fbb9c6daf0b2a9268064847701c9090f9b/v2/error.go#L75 Testing setting a value...

``` I would like to see an option or variable defined to allow for the code version to show up in the output, maybe something like: getopt.Version = "2.5.1" ```...

Priority-Medium
Type-Defect
auto-migrated

Querying `(*Set).IsSet()` for a flag name not actually defined causes a nil ptr crash instead of returning false. I'm unable to provide demo code (much less a fix) due to...

I've updated this module to be go.mod compatible. This avoids duplicate code while still enabling people to use both versions in their imports. I'm not sure whether GitHub would add...

``` Setting these variables: getopt.HelpColumn = 25 getopt.SetParameters("") Only take effect when you manually bring out the usage with: getopt.Usage() They do not seem to have any impact when the...

Priority-Medium
Type-Defect
auto-migrated

Based on what I've read in the documentation I would expect the following to work, but I might have misconfigured something. Essentially I would like to support syntax like what...

I notice there has been no activity for a couple of years and that Issues persist for years without a response from the maintainer. Is this package abandoned?