mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Rework help/usage messages
Trimmed down the option lists as per @bentley's request; Reinstated the man pages' synopsis
This commit is contained in:
@@ -52,23 +52,19 @@ static struct option const longopts[] = {
|
||||
static void print_usage(void)
|
||||
{
|
||||
fputs(
|
||||
"usage: rgbfix [<options>] <file>\n"
|
||||
" -C, --color-only flag the ROM as Color-only\n"
|
||||
" -c, --color-compatible flag the ROM as color-compatible\n"
|
||||
" -f, --fix-spec <flags> specify how to fix or trash the header\n"
|
||||
" -i, --game-id <ID> set the 4 characters at 0x13F-0x142\n"
|
||||
" -j, --non-japanese flag the ROM as exclusively overseas\n"
|
||||
" -k, --new-licensee <code> set the new licensee str to at most two chars\n"
|
||||
" -l, --old-licensee <value> set the old licensee code to this byte\n"
|
||||
" -m, --mbc-type <value> set the MBC type byte to this value; refer\n"
|
||||
" to the man page for a list of values\n"
|
||||
" -n, --rom-version <version> set the ROM's revision byte\n"
|
||||
" -p, --pad-value <value> pad to the next valid size using this value\n"
|
||||
" -r, --ram-size <code> set the cart RAM size byte to this value\n"
|
||||
" -s, --sgb-compatible set the SGB compatibility flag\n"
|
||||
" -t, --title <string> set the ROM's title (16 chars max, 15 is best)\n"
|
||||
" -V, --version print RGBFIX version and exit\n"
|
||||
" -v, --verbose report more information\n", stderr);
|
||||
"Usage: rgbfix [-jsVv] [-C | -c] [-f <fix_spec>] [-i <game_id>] [-k <licensee>]\n"
|
||||
" [-l <licensee_byte>] [-m <mbc_type>] [-n <rom_version>]\n"
|
||||
" [-p <pad_value>] [-r <ram_size>] [-t <title_str>] <file>\n"
|
||||
"Useful options:\n"
|
||||
" -m, --mbc-type <value> set the MBC type byte to this value; refer\n"
|
||||
" to the man page for a list of values\n"
|
||||
" -p, --pad-value <value> pad to the next valid size using this value\n"
|
||||
" -r, --ram-size <code> set the cart RAM size byte to this value\n"
|
||||
" -V, --version print RGBFIX version and exit\n"
|
||||
" -v, --verbose fix the header logo and both checksums (-f lhg)\n"
|
||||
"\n"
|
||||
"For help, use `man rgbfix' or go to https://rednex.github.io/rgbds/\n",
|
||||
stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user