On Sat, Jun 06, 2009 at 01:19:34PM +0800, jida...@jidanni.org wrote: > Package: dlocate > Version: 1.02 > Severity: wishlist > > Here a better error message or better options processing might be used: > > $ dlocate -iP blablabla > dlocate: unknown option '-iP' > > Use: 'dlocate -- -iP' if you want to search for '-iP' > > As all the user was trying to do was > $ dlocate -i -P blablabla > > Same with other such - combinations.
1. dlocate works as documented. 2. more precisely, nowhere in the dlocate documentation is it ever suggested that combining short options like that will work. some programs support that feature, some don't. dlocate is one of the latter. 3. i'll leave this wishlist bug open as a reminder, but don't expect it to be fixed any time soon. that will have to wait until i get time to rewrite the option handling of dlocate (which is, frankly, atrociously bad). when the option handling is fixed, that version of dlocate will NOT be backwards-compatible with previous versions...because fixing it means fixing the stupid single-dash long options. i've been making a few notes and plans on fixing option handling, but i'm currently undecided about the best way to proceed...it's not terribly difficult to do, but i only want to have to do it once, so i want to make sure that i don't end up implementing another short-sighted dumb "quick-hack" option handler. craig -- craig sanders <c...@taz.net.au> -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org