From 860c9883bbdd07b84e38e26cf9a50dffd07a6ff8 Mon Sep 17 00:00:00 2001 From: bentley Date: Fri, 15 Jan 2010 19:50:58 -0700 Subject: [PATCH] rgbasm: fix usage information --- include/asm/gameboy/localasm.h | 3 --- src/asm/main.c | 18 +++--------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/include/asm/gameboy/localasm.h b/include/asm/gameboy/localasm.h index dc79c5e4..1f136e11 100644 --- a/include/asm/gameboy/localasm.h +++ b/include/asm/gameboy/localasm.h @@ -83,9 +83,6 @@ #define MAXSECTIONSIZE 0x4000 -#define APPNAME "RGBAsm" -#define EXENAME "rgbasm" - #define NAME_DB "db" #define NAME_DW "dw" #define NAME_RB "rb" diff --git a/src/asm/main.c b/src/asm/main.c index a6057d66..f93af893 100644 --- a/src/asm/main.c +++ b/src/asm/main.c @@ -228,21 +228,9 @@ fatalerror(char *s) void PrintUsage(void) { - printf(APPNAME " v" ASM_VERSION " (part of ASMotor " ASMOTOR_VERSION - ")\n\nUsage: " EXENAME " [options] asmfile\n"); - printf("Options:\n"); - printf("\t-h\t\tThis text\n"); - printf("\t-i\tExtra include path\n"); - printf("\t-o\tWrite objectoutput to \n"); - printf - ("\t-g\tChange the four characters used for Gameboy graphics\n" - "\t\t\tconstants (default is 0123)\n"); - printf - ("\t-b\t\tChange the two characters used for binary constants\n" - "\t\t\t(default is 01)\n"); - printf - ("\t-z\t\tSet the byte value (hex format) used for uninitialised\n" - "\t\t\tdata (default is 0x00)\n"); + printf("RGBAsm v" ASM_VERSION " (part of ASMotor " ASMOTOR_VERSION + ")\n\n"); + printf("Usage: rgbasm [-b chars] [-g chars] [-i path] [-o outfile] [-z pad_value] file\n"); exit(EX_USAGE); } /*