picoproj: exit with success when the -h option is used
authorAntonio Ospite <ospite@studenti.unina.it>
Tue, 24 Jan 2012 09:41:47 +0000 (10:41 +0100)
committerAntonio Ospite <ospite@studenti.unina.it>
Wed, 25 Jan 2012 14:54:05 +0000 (15:54 +0100)
src/picoproj.c

index 0b9e45c..6e95fdb 100644 (file)
@@ -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);