summaryrefslogtreecommitdiff
path: root/libinstaller
diff options
context:
space:
mode:
authorGene Cumm <gene.cumm@gmail.com>2010-07-27 18:58:46 -0400
committerGene Cumm <gene.cumm@gmail.com>2010-07-27 18:58:46 -0400
commite841d6983b3f161a0a8566e8a8b3b18d83e845cf (patch)
treef69a575861ae4eaf3333e19e3c11769709f12546 /libinstaller
parent5eb4ed5ce84c1dce191fe4f83b58601c1e506479 (diff)
downloadsyslinux-e841d6983b3f161a0a8566e8a8b3b18d83e845cf.tar.gz
libinstaller/syslxopt.c: remove unneeded usage text from certain variants.
Gert Hulselmans noticed this.
Diffstat (limited to 'libinstaller')
-rw-r--r--libinstaller/syslxopt.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/libinstaller/syslxopt.c b/libinstaller/syslxopt.c
index 18a6baac..786e3d7f 100644
--- a/libinstaller/syslxopt.c
+++ b/libinstaller/syslxopt.c
@@ -113,10 +113,17 @@ void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode)
mode == MODE_SYSLINUX ? " " : "-o");
/* Have to chop this roughly in half for the DOS installer for some reason */
fprintf(stderr,
- " --menu-save= -M Set the label to select as default on the next boot\n"
+ " --menu-save= -M Set the label to select as default on the next boot\n");
+ switch (mode) {
+ case MODE_SYSLINUX_DOSWIN:
+ fprintf(stderr,
" --mbr -m Install an MBR (DOS/Win32 installers only)\n"
- " --active -a Mark partition as active (DOS/Win32 installers only)\n"
- " --force -f Ignore precautions (DOS/Win32/mtools installers only)\n"
+ " --active -a Mark partition as active (DOS/Win32 installers only)\n");
+ case MODE_SYSLINUX:
+ fprintf(stderr,
+ " --force -f Ignore precautions (DOS/Win32/mtools installers only)\n");
+ }
+ fprintf(stderr,
"\n"
" Note: geometry is determined at boot time for devices which\n"
" are considered hard disks by the BIOS. Unfortunately, this is\n"