aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-08-24 21:17:06 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-08-24 21:17:06 -0700
commitcb1525aaea9d94eb67ae4a6d6e8a0bfaf636214c (patch)
treef09aa2438fd761f540efbe4d17b9f42797c9ef58 /extlinux
parent3c6c02ff57e3f2fd72a7ec41d8bfbf14290a7adc (diff)
downloadsyslinux-elf-cb1525aaea9d94eb67ae4a6d6e8a0bfaf636214c.tar.gz
syslinux-elf-cb1525aaea9d94eb67ae4a6d6e8a0bfaf636214c.tar.xz
syslinux-elf-cb1525aaea9d94eb67ae4a6d6e8a0bfaf636214c.zip
Print a usage message when we get an invalid optionsyslinux-3.20-pre20
Diffstat (limited to 'extlinux')
-rw-r--r--extlinux/extlinux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/extlinux/extlinux.c b/extlinux/extlinux.c
index be0e296d..176ed2f6 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);
}
}