[pacman-dev] [PATCH 3/6] pacman: use exit status 0 for --help and --version
Dan McGee
dpmcgee at gmail.com
Wed Jan 15 09:25:21 EST 2014
On Mon, Jan 13, 2014 at 10:01 PM, Andrew Gregory <andrew.gregory.8 at gmail.com
> wrote:
> The user requesting usage or version information is not an error.
>
> Signed-off-by: Andrew Gregory <andrew.gregory.8 at gmail.com>
> ---
>
$ git grep 'return 2;' src/ | cat
src/pacman/pacman.c: return 2;
src/pacman/pacman.c: return 2;
src/util/pacsort.c: return 2;
src/util/vercmp.c: return 2;
I'd broaden the scope of your patch a bit; might want to check the non-C
utilities too.
-Dan
More information about the pacman-dev
mailing list