clagraff / argparse

A Golang argument parser for command line arguments.
MIT License
24 stars 4 forks source link

Options with short and long names cannot be used properly #30

Closed clagraff closed 7 years ago

clagraff commented 8 years ago

Non-positional options which have both a long and short name will not be found and utilized correctly, as the parser only checked the current option name against the entire DisplayName() result for all stored options.

Instead, it should check for all the possibilities within the display name against the current option name.

clagraff commented 7 years ago

Bleh. Should add code to aid in replicating the bug.

clagraff commented 7 years ago

Could not replicate.