Rework help/usage messages

Trimmed down the option lists as per @bentley's request;
Reinstated the man pages' synopsis
This commit is contained in:
ISSOtm
2019-12-29 17:38:08 +01:00
parent 606519c515
commit 6959b76749
4 changed files with 38 additions and 53 deletions

View File

@@ -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);
}