Added --dump-all
git-svn-id: svn://svn.cc65.org/cc65/trunk@241 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -71,13 +71,14 @@ static void Usage (void)
|
||||
/* Print usage information and exit */
|
||||
{
|
||||
fprintf (stderr,
|
||||
"Usage: %s [options] file\n"
|
||||
"Usage: %s [options] file [options] [file]\n"
|
||||
"Short options:\n"
|
||||
" -h\t\t\tHelp (this text)\n"
|
||||
" -V\t\t\tPrint the version number and exit\n"
|
||||
"\n"
|
||||
"Long options:\n"
|
||||
" --dump-exports\tDump exported symbols\n"
|
||||
" --dump-all\t\tDump all object file information\n"
|
||||
" --dump-exports\tDump exported symbols\n"
|
||||
" --dump-files\t\tDump the source files\n"
|
||||
" --dump-header\t\tDump the object file header\n"
|
||||
" --dump-imports\tDump imported symbols\n"
|
||||
@@ -90,6 +91,14 @@ static void Usage (void)
|
||||
|
||||
|
||||
|
||||
static void OptDumpAll (const char* Opt, const char* Arg)
|
||||
/* Dump all object file information */
|
||||
{
|
||||
What |= D_ALL;
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void OptDumpExports (const char* Opt, const char* Arg)
|
||||
/* Dump the exported symbols */
|
||||
{
|
||||
@@ -206,7 +215,7 @@ static void DumpFile (const char* Name)
|
||||
if (What & D_EXPORTS) {
|
||||
DumpObjExports (F, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Close the file */
|
||||
fclose (F);
|
||||
@@ -219,6 +228,7 @@ int main (int argc, char* argv [])
|
||||
{
|
||||
/* Program long options */
|
||||
static const LongOpt OptTab[] = {
|
||||
{ "--dump-all", 0, OptDumpAll },
|
||||
{ "--dump-exports", 0, OptDumpExports },
|
||||
{ "--dump-files", 0, OptDumpFiles },
|
||||
{ "--dump-header", 0, OptDumpHeader },
|
||||
|
||||
Reference in New Issue
Block a user