aboutsummaryrefslogtreecommitdiffstats
path: root/com32/modules
diff options
context:
space:
mode:
authorGert Hulselmans <kimmik999999@yahoo.co.uk>2009-10-27 20:31:42 +0100
committerErwan Velu <erwan.velu@free.fr>2009-10-27 20:31:42 +0100
commit3fc3126d0c7df5701680e043c34f200166f24564 (patch)
treee7a4ed682e9bba198e65108480be8dbe941ee8fd /com32/modules
parent486ec64c19b8c5d7eca7abfd34bcf696b7701261 (diff)
downloadsyslinux.git-3fc3126d0c7df5701680e043c34f200166f24564.tar.gz
syslinux.git-3fc3126d0c7df5701680e043c34f200166f24564.tar.xz
syslinux.git-3fc3126d0c7df5701680e043c34f200166f24564.zip
Improving chain.c32 help message
Impact: Error message is more detailed In case of syntax error, the message is far more detailed and provides the same content as the documentation integrated in the source code.
Diffstat (limited to 'com32/modules')
-rw-r--r--com32/modules/chain.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/com32/modules/chain.c b/com32/modules/chain.c
index a8c4adea..53746c85 100644
--- a/com32/modules/chain.c
+++ b/com32/modules/chain.c
@@ -650,7 +650,18 @@ int main(int argc, char *argv[])
}
} else {
error
- ("Usage: chain.c32 (hd#|fd#|mbr:#|boot)[,partition] [options]\n");
+ ("Usage: chain.c32 hd<disk#> [<partition>] [options]\n"
+ " chain.c32 fd<disk#> [options]\n"
+ " chain.c32 mbr:<id> [<partition>] [options]\n"
+ " chain.c32 boot [<partition>] [options]\n"
+ "Options: file=<loader> load file, instead of boot sector\n"
+ " ntldr=<loader> load Windows bootloaders: NTLDR, SETUPLDR, BOOTMGR\n"
+ " freedos=<loader> load FreeDOS kernel.sys\n"
+ " msdos=<loader> load MS-DOS io.sys\n"
+ " pcdos=<loader> load PC-DOS ibmbio.com\n"
+ " seg=<segment> jump to <seg>:0000 instead of 0000:7C00\n"
+ " swap swap drive numbers, if bootdisk is not fd0/hd0\n"
+ " hide hide primary partitions, except selected partition\n");
goto bail;
}
}