mirror of
https://github.com/cc65/cc65.git
synced 2025-02-26 07:29:25 +00:00
The input file on the command line is optional
git-svn-id: svn://svn.cc65.org/cc65/trunk@2261 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
73dfa23c98
commit
b4bfbfa8ce
@ -70,7 +70,7 @@ static void Usage (void)
|
|||||||
/* Print usage information and exit */
|
/* Print usage information and exit */
|
||||||
{
|
{
|
||||||
fprintf (stderr,
|
fprintf (stderr,
|
||||||
"Usage: %s [options] file\n"
|
"Usage: %s [options] [inputfile]\n"
|
||||||
"Short options:\n"
|
"Short options:\n"
|
||||||
" -g\t\t\tAdd debug info to object file\n"
|
" -g\t\t\tAdd debug info to object file\n"
|
||||||
" -h\t\t\tHelp (this text)\n"
|
" -h\t\t\tHelp (this text)\n"
|
||||||
@ -405,14 +405,14 @@ int main (int argc, char* argv [])
|
|||||||
++I;
|
++I;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Try to read the info file */
|
||||||
|
ReadInfoFile ();
|
||||||
|
|
||||||
/* Must have an input file */
|
/* Must have an input file */
|
||||||
if (InFile == 0) {
|
if (InFile == 0) {
|
||||||
AbEnd ("No input file");
|
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 */
|
/* Make the output file name from the input file name if none was given */
|
||||||
if (OutFile == 0) {
|
if (OutFile == 0) {
|
||||||
OutFile = MakeFilename (InFile, OutExt);
|
OutFile = MakeFilename (InFile, OutExt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user