Open firegurafiku opened 10 years ago
sorry for this late reply. Many of those points are valid bugs. In fact I will add your cases in my unit tests.
To be honest I haven't written a command line app for some time. Do you know what is the classic way to deal with flags starting with the same letters?
@firegurafiku I have fixed the first issues, although error message are not always perfect. I am currently thinking about the doc issue.
I was playing around with you library and wrote simple test program after you example in package documentation. It parses two flags and a variable number of positional arguments:
I've successfully compiled it and run several times and found that for me it works in a very misleading way:
Also, if two flags are named starting with the same letter, they share their short form which is not possible in principle:
I'm very sorry if I've missed some points in documentation and artifacts above are not really bugs. Here is the package version: