From: michaelh Date: Sun, 23 Jan 2000 19:39:37 +0000 (+0000) Subject: Added ports info to --help and --version. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=0e7159715bffe2020d8cd40736c4c897fa3bef64;p=fw%2Fsdcc Added ports info to --help and --version. git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@27 4a8a32a2-be11-0410-ad9d-d568d2c75423 --- diff --git a/src/SDCCmain.c b/src/SDCCmain.c index 4b80021e..3528c6e7 100644 --- a/src/SDCCmain.c +++ b/src/SDCCmain.c @@ -150,10 +150,14 @@ static int _setPort(const char *name) /*-----------------------------------------------------------------*/ void printVersionInfo () { - + int i; + + fprintf (stderr, + "SDCC : "); + for (i=0; itarget); - fprintf (stderr , - "SDCC : MCU 8051 %s " + fprintf(stderr, " %s `" #ifdef __CYGWIN32__ " (CYGWIN32)\n" #else @@ -163,8 +167,8 @@ void printVersionInfo () " (UNIX) \n" # endif #endif - , VersionString - ); + , VersionString + ); } /*-----------------------------------------------------------------*/ @@ -176,6 +180,8 @@ void printUsage () fprintf (stderr, "Usage : [options] filename\n" "Options :-\n" + "\t-m - Target processor . Default %s\n" + "\t Try --version for supported values of \n" "\t--model-large - Large Model\n" "\t--model-small - Small Model (default)\n" "\t--stack-auto - Stack automatic variables\n" @@ -192,7 +198,9 @@ void printUsage () "PreProcessor Options :-\n" "\t-Dmacro - Define Macro\n" "\t-Ipath - Include \"*.h\" path\n" - "Note: this is a complete list of options see docs for details\n"); + "Note: this is a complete list of options see docs for details\n", + _ports[0]->target + ); exit (0); }