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

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