diff options
author | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-07-19 23:21:57 -0400 |
---|---|---|
committer | Shao Miller <shao.miller@yrdsb.edu.on.ca> | 2010-07-19 23:24:01 -0400 |
commit | c02184c7378991951ffe07add1ff368a8663c18b (patch) | |
tree | 345fd0b044fef261c1476f4cf37674467d6f98cb /libinstaller | |
parent | dec3ce659bb2cce45e5960ddd54b9d3b3d6da863 (diff) | |
download | syslinux-c02184c7378991951ffe07add1ff368a8663c18b.tar.gz |
dos: Use libinstaller option parser
We will produce an error message if a user attempts
to use an option we don't implement.
Signed-off-by: Shao Miller <shao.miller@yrdsb.edu.on.ca>
Diffstat (limited to 'libinstaller')
-rw-r--r-- | libinstaller/syslxopt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libinstaller/syslxopt.c b/libinstaller/syslxopt.c index eb00dbd2..18a6baac 100644 --- a/libinstaller/syslxopt.c +++ b/libinstaller/syslxopt.c @@ -93,7 +93,8 @@ void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode) case MODE_SYSLINUX_DOSWIN: /* For fs installation under Windows (syslinux.exe) */ fprintf(stderr, - "Usage: %s [options] <drive>: [bootsecfile]\n", + "Usage: %s [options] <drive>: [bootsecfile]\n" + " --directory -d Directory for installation target\n", program); break; } @@ -123,7 +124,7 @@ void __attribute__ ((noreturn)) usage(int rv, enum syslinux_mode mode) " which includes zipdisks and LS-120 superfloppies.\n" "\n" " The -z option is useful for USB devices which are considered\n" - " hard disks by some BIOSes and zipdrives by other BIOSes.\n"); + " hard disks by some BIOSes and zipdrives by other BIOSes."); exit(rv); } |