commit e5cfcfc2a35661baa401312bc9506fd3e3069b7d parent 37207ba1555d324722b14db4d7a32b23a467d1b7 Author: z3bra <willy@mailoo.org> Date: Wed Mar 26 20:22:56 2014 Exit when called with -h Diffstat: skroll.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/skroll.c b/skroll.c @@ -114,7 +114,8 @@ int main (int argc, char **argv) while ( (ch = getopt(argc, argv, "hd:ln:r")) != -1 ) { switch (ch) { case 'h': - printf("usage: %s [-hlr] [-d delay] [-n number]", argv[0]); + printf("usage: %s [-hlr] [-d delay] [-n number]\n", argv[0]); + exit(0); break; case 'd': delay = strtof(optarg, NULL); break; case 'n': number = strtoul(optarg, NULL, 10); break;