From: cuz Date: Sun, 10 Aug 2003 17:22:46 +0000 (+0000) Subject: The input file on the command line is optional X-Git-Tag: V2.12.0~1464 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b4bfbfa8ce1f70c8844fd03a5f8b4d1c508ee0fd;p=cc65 The input file on the command line is optional git-svn-id: svn://svn.cc65.org/cc65/trunk@2261 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/src/da65/main.c b/src/da65/main.c index ea8dea627..0a4192b9b 100644 --- a/src/da65/main.c +++ b/src/da65/main.c @@ -70,7 +70,7 @@ static void Usage (void) /* Print usage information and exit */ { fprintf (stderr, - "Usage: %s [options] file\n" + "Usage: %s [options] [inputfile]\n" "Short options:\n" " -g\t\t\tAdd debug info to object file\n" " -h\t\t\tHelp (this text)\n" @@ -405,14 +405,14 @@ int main (int argc, char* argv []) ++I; } + /* Try to read the info file */ + ReadInfoFile (); + /* Must have an input file */ if (InFile == 0) { AbEnd ("No input file"); } - /* Try to read the configuration file */ - ReadInfoFile (); - /* Make the output file name from the input file name if none was given */ if (OutFile == 0) { OutFile = MakeFilename (InFile, OutExt);