From: H. Peter Anvin Date: Fri, 25 Aug 2006 04:17:06 +0000 (-0700) Subject: Print a usage message when we get an invalid option X-Git-Tag: syslinux-3.20-pre20^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cb1525aaea9d94eb67ae4a6d6e8a0bfaf636214c;p=profile%2Fivi%2Fsyslinux.git Print a usage message when we get an invalid option --- diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c index be0e296..176ed2f 100644 --- a/extlinux/extlinux.c +++ b/extlinux/extlinux.c @@ -796,8 +796,7 @@ main(int argc, char *argv[]) fputs("extlinux " VERSION "\n", stderr); exit(0); default: - fprintf(stderr, "%s: Unknown option: %c\n", program, optopt); - exit(EX_USAGE); + usage(EX_USAGE); } }