From bcc306b637fc92cd9cbecea5e9b95eabba0428cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Tue, 14 Dec 2004 23:36:03 +0000 Subject: [PATCH] 10000l do return somethng from main (how the hell did I forgot that ? I always do it usually) :) Also dump some usage for --help git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10460 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bin/rescan.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/apps/bin/rescan.c b/src/apps/bin/rescan.c index e5095fac0f..cb5bafb10b 100644 --- a/src/apps/bin/rescan.c +++ b/src/apps/bin/rescan.c @@ -18,6 +18,10 @@ int main(int argc, char **argv) int scan_index = 0; int fd_dev; + if (argc == 2 && !strcmp(argv[1], "--help")) { + printf("usage: rescan [driver]\n"); + return 0; + } if (argc > 1) { scan = scan_names = argv; scan_count = argc; @@ -29,5 +33,6 @@ int main(int argc, char **argv) write(fd_dev, scan[scan_index], strlen(scan[scan_index])); close(fd_dev); } + return 0; }