aboutsummaryrefslogtreecommitdiffstats
path: root/extlinux/main.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@linux.intel.com>2010-06-09 17:20:10 -0700
committerH. Peter Anvin <hpa@linux.intel.com>2010-06-09 17:22:54 -0700
commit064b36baf1da53a709d1598209b025fcd4494d27 (patch)
treecdc99acd6d9fb97a3aa6dab969ae5c0640976880 /extlinux/main.c
parent8ae3122d64ef1434b2b11b25cacd77d65663b3fa (diff)
downloadsyslinux-064b36baf1da53a709d1598209b025fcd4494d27.tar.gz
syslinux-064b36baf1da53a709d1598209b025fcd4494d27.tar.xz
syslinux-064b36baf1da53a709d1598209b025fcd4494d27.zip
syslinux: don't break -o just yet; print warning and resume
-o has been supported for a very long time; recommend using -t instead, but for now proceed with an error message. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Diffstat (limited to 'extlinux/main.c')
-rw-r--r--extlinux/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/extlinux/main.c b/extlinux/main.c
index e33e3ae0..c76add41 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -883,7 +883,7 @@ int modify_existing_adv(const char *path)
int main(int argc, char *argv[])
{
- parse_options(argc, argv, 0);
+ parse_options(argc, argv, MODE_EXTLINUX);
if (!opt.directory)
usage(EX_USAGE, 0);
@@ -892,7 +892,7 @@ int main(int argc, char *argv[])
if (opt.reset_adv || opt.set_once || opt.menu_save)
return modify_existing_adv(opt.directory);
else
- usage(EX_USAGE, 0);
+ usage(EX_USAGE, MODE_EXTLINUX);
}
return install_loader(opt.directory, opt.update_only);