Show
Ignore:
Timestamp:
10/27/09 19:31:42 (3 years ago)
Author:
Erwan Velu <erwan.velu@…>
Children:
57c8555003f53800da1bb93a765d80678ae230ae
Parents:
486ec64c19b8c5d7eca7abfd34bcf696b7701261
git-author:
Gert Hulselmans <kimmik999999@yahoo.co.uk> / 2009-10-27T20:31:42Z+0100
git-committer:
Erwan Velu <erwan.velu@free.fr> / 2009-10-27T20:31:42Z+0100
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • com32/modules/chain.c

    rd5d1a3 r3fc312  
    651651        } else { 
    652652            error 
    653                 ("Usage: chain.c32 (hd#|fd#|mbr:#|boot)[,partition] [options]\n"); 
     653                ("Usage:   chain.c32 hd<disk#> [<partition>] [options]\n" 
     654                 "         chain.c32 fd<disk#> [options]\n" 
     655                 "         chain.c32 mbr:<id> [<partition>] [options]\n" 
     656                 "         chain.c32 boot [<partition>] [options]\n" 
     657                 "Options: file=<loader>      load file, instead of boot sector\n" 
     658                 "         ntldr=<loader>     load Windows bootloaders: NTLDR, SETUPLDR, BOOTMGR\n" 
     659                 "         freedos=<loader>   load FreeDOS kernel.sys\n" 
     660                 "         msdos=<loader>     load MS-DOS io.sys\n" 
     661                 "         pcdos=<loader>     load PC-DOS ibmbio.com\n" 
     662                 "         seg=<segment>      jump to <seg>:0000 instead of 0000:7C00\n" 
     663                 "         swap               swap drive numbers, if bootdisk is not fd0/hd0\n" 
     664                 "         hide               hide primary partitions, except selected partition\n"); 
    654665            goto bail; 
    655666        }