Added dump of the file list

git-svn-id: svn://svn.cc65.org/cc65/trunk@238 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2000-07-30 16:15:04 +00:00
parent 697f6e1cfa
commit a63d35278c
3 changed files with 86 additions and 8 deletions

View File

@@ -77,7 +77,8 @@ static void Usage (void)
" -V\t\t\tPrint the version number and exit\n"
"\n"
"Long options:\n"
" --dump-header\t\tDump the object file header\n"
" --dump-files\t\tDump the source files\n"
" --dump-header\t\tDump the object file header\n"
" --dump-options\t\tDump object file options\n"
" --help\t\tHelp (this text)\n"
" --version\t\tPrint the version number and exit\n",
@@ -86,6 +87,14 @@ static void Usage (void)
static void OptDumpFiles (const char* Opt, const char* Arg)
/* Dump the source files */
{
What |= D_FILES;
}
static void OptDumpHeader (const char* Opt, const char* Arg)
/* Dump the object file header */
{
@@ -158,6 +167,9 @@ static void DumpFile (const char* Name)
if (What & D_OPTIONS) {
DumpObjOptions (F, 0);
}
if (What & D_FILES) {
DumpObjFiles (F, 0);
}
}
/* Close the file */
@@ -171,6 +183,7 @@ int main (int argc, char* argv [])
{
/* Program long options */
static const LongOpt OptTab[] = {
{ "--dump-files", 0, OptDumpFiles },
{ "--dump-header", 0, OptDumpHeader },
{ "--dump-options", 0, OptDumpOptions },
{ "--help", 0, OptHelp },