mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 10:42:07 +00:00
Unify usage strings/functions across programs.
The funny spacing is to make it easier to keep to 80 characters/line.
This commit is contained in:
@@ -233,11 +233,12 @@ fatalerror(const char *fmt, ...)
|
||||
*
|
||||
*/
|
||||
|
||||
void
|
||||
PrintUsage(void)
|
||||
static void
|
||||
usage(void)
|
||||
{
|
||||
printf("Usage: rgbasm [-v] [-h] [-b chars] [-g chars] [-i path] [-o outfile] [-p pad_value]\n"
|
||||
" file\n");
|
||||
printf(
|
||||
"Usage: rgbasm [-v] [-h] [-b chars] [-g chars] [-i path] [-o outfile]\n"
|
||||
" [-p pad_value] file.asm\n");
|
||||
exit(1);
|
||||
}
|
||||
/*
|
||||
@@ -260,7 +261,7 @@ main(int argc, char *argv[])
|
||||
|
||||
|
||||
if (argc == 1)
|
||||
PrintUsage();
|
||||
usage();
|
||||
|
||||
/* yydebug=1; */
|
||||
|
||||
@@ -323,7 +324,7 @@ main(int argc, char *argv[])
|
||||
newopt.verbose = true;
|
||||
break;
|
||||
default:
|
||||
PrintUsage();
|
||||
usage();
|
||||
}
|
||||
}
|
||||
argc -= optind;
|
||||
@@ -334,7 +335,7 @@ main(int argc, char *argv[])
|
||||
DefaultOptions = CurrentOptions;
|
||||
|
||||
if (argc == 0)
|
||||
PrintUsage();
|
||||
usage();
|
||||
|
||||
tzMainfile = argv[argc - 1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user