From: Antonio Ospite Date: Tue, 24 Jan 2012 09:41:47 +0000 (+0100) Subject: picoproj: exit with success when the -h option is used X-Git-Tag: v0.1.0~20 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/c4cda76c6f02bc04d31761a54470434d8e1d60b8 picoproj: exit with success when the -h option is used --- diff --git a/src/picoproj.c b/src/picoproj.c index 0b9e45c..6e95fdb 100644 --- a/src/picoproj.c +++ b/src/picoproj.c @@ -89,6 +89,10 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } break; + case 'h': + usage(argv[0]); + exit(EXIT_SUCCESS); + break; default: /* '?' */ usage(argv[0]); exit(EXIT_FAILURE);