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:
@@ -269,22 +269,19 @@ static struct option const longopts[] = {
|
||||
static void print_usage(void)
|
||||
{
|
||||
fputs(
|
||||
"usage: rgbasm [<options>] <file>...\n"
|
||||
" -b, --binary-digits <digits> change the chars used for binary constants\n"
|
||||
" -D, --define <name>[=<value>] add a string define (`EQUS')\n"
|
||||
" -E, --export-all export all labels\n"
|
||||
" -g, --gfx-chars <chars> change the chars used for gfx constants\n"
|
||||
" -h, --halt-without-nop do not automatically add `nop' after `halt'\n"
|
||||
" -i, --include <path> add the directory to the include search list\n"
|
||||
" -L, --preserve-ld prevent auto-optimizing `ld' to `ldh'\n"
|
||||
" -M, --dependfile <path> set the output dependency file\n"
|
||||
" -o, --output <path> set the output object file\n"
|
||||
" -p, --pad-value <value> set the value to use for `ds'\n"
|
||||
" -r, --recursion-depth <depth> set max recursion depth before aborting\n"
|
||||
" -V, --version print RGBASM version and exit\n"
|
||||
" -v, --verbose report more information\n"
|
||||
" -W, --warning enable or disable warnings\n"
|
||||
" -w disable all warnings\n", stderr);
|
||||
"Usage: rgbasm [-EhLVvw] [-b chars] [-D name[=value]] [-g chars] [-i path]\n"
|
||||
" [-M depend_file] [-o out_file] [-p pad_value] [-r depth]\n"
|
||||
" [-W warning] <file> ...\n"
|
||||
"Useful options:\n"
|
||||
" -E, --export-all export all labels\n"
|
||||
" -M, --dependfile <path> set the output dependency file\n"
|
||||
" -o, --output <path> set the output object file\n"
|
||||
" -p, --pad-value <value> set the value to use for `ds'\n"
|
||||
" -V, --version print RGBASM version and exit\n"
|
||||
" -W, --warning <warning> enable or disable warnings\n"
|
||||
"\n"
|
||||
"For help, use `man rgbasm' or go to https://rednex.github.io/rgbds/\n",
|
||||
stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -53,25 +53,18 @@ static struct option const longopts[] = {
|
||||
static void print_usage(void)
|
||||
{
|
||||
fputs(
|
||||
"usage: rgbgfx [<options>] <file>\n"
|
||||
" -a, --attr-map <path> set the output attribute map file\n"
|
||||
" -A, --output-attr-map output the attribute map to <input>.attrmap\n"
|
||||
" -C, --color-curve use the GBC's color curve (color profile)\n"
|
||||
" -D, --debug output debug info\n"
|
||||
" -d, --depth <bpp> set the output image's depth to <bpp>bpp\n"
|
||||
"Usage: rgbgfx [-CDhmuVv] [-f | -F] [-a <attr_map> | -A] [-d <depth>]\n"
|
||||
" [-o <out_file>] [-p <pal_file> | -P] [-t <tile_map> | -T]\n"
|
||||
" [-x <tiles>] <file>\n"
|
||||
"Useful options:\n"
|
||||
" -f, --fix make the input image an indexed PNG\n"
|
||||
" -F, --fix-and-save same, but also save parameters inside the PNG\n"
|
||||
" -h, --horizontal lay out tiles horizontally instead of vertically\n"
|
||||
" -m, --mirror-tiles optimize out mirrored tiles\n"
|
||||
" -o, --output <path> set the output binary file\n"
|
||||
" -p, --palette <path> set the output palette file\n"
|
||||
" -P, --output-palette output the palette file to <input>.pal\n"
|
||||
" -t, --tilemap <path> set the output tilemap file\n"
|
||||
" -T, --output-tilemap output the tilemap file to <input>.tilemap\n"
|
||||
" -u, --unique-tiles optimize out identical tiles\n"
|
||||
" -V, --version print RGBGFX version and exit\n"
|
||||
" -v, --verbose print errors when parameters conflict with the PNG\n"
|
||||
" -x, --trim-end <nbtiles> trim the end of the binary output by N tiles\n",
|
||||
"\n"
|
||||
"For help, use `man rgbgfx' or go to https://rednex.github.io/rgbds/\n",
|
||||
stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
@@ -83,19 +83,18 @@ static struct option const longopts[] = {
|
||||
static void printUsage(void)
|
||||
{
|
||||
fputs(
|
||||
"usage: rgblink [<options>] <file>...\n"
|
||||
" -d, --dmg enable DMG mode, disabling VRAM & VRAM banks\n"
|
||||
"Usage: rgblink [-dtVvw] [-l script] [-m map_file] [-n sym_file]\n"
|
||||
" [-O overlay_file] [-o out_file] [-p pad_value] [-s symbol]\n"
|
||||
" <file> ...\n"
|
||||
"Useful options:\n"
|
||||
" -l, --linkerscript <path> set the input linker script\n"
|
||||
" -m, --map <path> set the output map file\n"
|
||||
" -n, --sym <path> set the output symbol list file\n"
|
||||
" -O, --overlay <path> set the input overlay file\n"
|
||||
" -o, --output <path> set the output file\n"
|
||||
" -p, --pad <value> set the value to pad between sections with\n"
|
||||
" -s, --smart <symbol?> does nothing, nobody knows what it's supposed to\n"
|
||||
" -t, --tiny enable 32k mode, replacing ROMX with ROM0\n"
|
||||
" -V, --version print RGBLINK version and exits\n"
|
||||
" -v, --verbose report more information\n"
|
||||
" -w, --wramx replace WRAMX with WRAM0 and disable WRAM banks\n",
|
||||
"\n"
|
||||
"For help, use `man rgblink' or go to https://rednex.github.io/rgbds/\n",
|
||||
stderr);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user