[pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Xavier Chantry
$ pacman -Uh options: -b, --dbpath path set an alternate database location -d, --nodeps skip dependency checks -f, --force force install, overwrite conflicting files -k, --dbonly only modify database entries, not package files -r, --root pathset an alternate

Re: [pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Nagy Gabor
$ pacman -Uh options: -b, --dbpath path set an alternate database location -d, --nodeps skip dependency checks -f, --force force install, overwrite conflicting files -k, --dbonly only modify database entries, not package files -r, --root pathset an

Re: [pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Xavier Chantry
On Thu, Oct 14, 2010 at 1:55 PM, Nagy Gabor ng...@bibl.u-szeged.hu wrote: I like this. Cool :) +     /* First skip all spaces in both strings */ +     while(isspace((unsigned char)*s1)) +             s1++; +     while(isspace((unsigned char)*s2)) +             s2++; +     /* If we

[pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Xavier Chantry
$ pacman -Uh options: -b, --dbpath path set an alternate database location -d, --nodeps skip dependency checks -f, --force force install, overwrite conflicting files -k, --dbonly only modify database entries, not package files -r, --root pathset an alternate

Re: [pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Dan McGee
On Thu, Oct 14, 2010 at 8:36 AM, Xavier Chantry chantry.xav...@gmail.com wrote: diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 7d51124..38d7f6a 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -26,8 +26,10 @@  #define PACKAGE_VERSION GIT_VERSION  #endif

Re: [pacman-dev] [PATCH] Sort short options before long options in --help

2010-10-14 Thread Xavier Chantry
On Thu, Oct 14, 2010 at 3:44 PM, Dan McGee dpmc...@gmail.com wrote: Is the assert stuff you added to be safer? We don't want to use this. One, they are compiled into nothing if NDEBUG is defined, and two, it is a bit silly to abort on this condition. cmp(NULL, NULL) ==0, and then just decide