diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 6f8573da87..4cdfc39055 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,9 @@ +20000205-17:00 GMT+1 Victor Szakats + * source/compiler/hbusage.c + + The command line help screen uses the platform dependent switch + character when listing options. + + 1999 -> 1999-2000 + 20000205-13:06 GMT+1 Victor Szakats * tests/db_brows.prg ! UPDATED() removed, since it's now defined in the RTL. diff --git a/harbour/source/compiler/hbusage.c b/harbour/source/compiler/hbusage.c index bc9a108523..4b7e49ad0b 100644 --- a/harbour/source/compiler/hbusage.c +++ b/harbour/source/compiler/hbusage.c @@ -6,7 +6,7 @@ * Harbour Project source code: * Compile help & info related functions * - * Copyright 1999 {list of individual authors and e-mail addresses} + * Copyright 1999 Victor Szakats * www - http://www.harbour-project.org * * This program is free software; you can redistribute it and/or modify @@ -40,47 +40,53 @@ */ void hb_compPrintUsage( char * szSelf ) { - printf( "\nSyntax: %s [options]" - "\n" - "\nOptions: /a automatic memvar declaration" - "\n /b debug info" - "\n /d[=] #define " - "\n /es[] set exit severity" - "\n /g output type generated is (see below)" - "\n /gc[] output type: C source (.c) (default)" - "\n : 0=without comments, 1=normal (default)" + static const char * szOptions [] = + { + "\nOptions: %ca automatic memvar declaration", + "\n %cb debug info", + "\n %cd[=] #define ", + "\n %ces[] set exit severity", + "\n %cg output type generated is (see below)", + "\n %cgc[] output type: C source (.c) (default)", + "\n : 0=without comments, 1=normal (default)", #ifdef HARBOUR_OBJ_GENERATION - "\n /gf output type: Windows/DOS OBJ32 (.obj)" + "\n %cgf output type: Windows/DOS OBJ32 (.obj)", #endif - "\n /gh output type: Harbour Portable Object (.hrb)" - "\n /gj output type: Java source (.java)" - "\n /gp output type: Pascal source (.pas)" - "\n /gr output type: Windows resource (.rc)" - "\n /i add #include file search path" - "\n /l suppress line number information" -/* TODO: "\n /m compile module only" */ - "\n /n no implicit starting procedure" - "\n /o object file drive and/or path" - "\n /p generate pre-processed output (.ppo) file" - "\n /q quiet" - "\n /q0 quiet and don't display program header" -/* TODO: "\n /r[] request linker to search (or none)" */ - "\n /s syntax check only" -/* TODO: "\n /t path for temp file creation" */ -/* TODO: "\n /u[] use command def set in (or none)" */ - "\n /v variables are assumed M->" - "\n /w[] set warning level number (0..3, default 1)" - "\n /x[] set symbol init function name prefix (for .c only)" + "\n %cgh output type: Harbour Portable Object (.hrb)", + "\n %cgj output type: Java source (.java)", + "\n %cgp output type: Pascal source (.pas)", + "\n %cgr output type: Windows resource (.rc)", + "\n %ci add #include file search path", + "\n %cl suppress line number information", +/* TODO: "\n %cm compile module only", */ + "\n %cn no implicit starting procedure", + "\n %co object file drive and/or path", + "\n %cp generate pre-processed output (.ppo) file", + "\n %cq quiet", + "\n %cq0 quiet and don't display program header", +/* TODO: "\n %cr[] request linker to search (or none)", */ + "\n %cs syntax check only", +/* TODO: "\n %ct path for temp file creation", */ +/* TODO: "\n %cu[] use command def set in (or none)", */ + "\n %cv variables are assumed M->", + "\n %cw[] set warning level number (0..3, default 1)", + "\n %cx[] set symbol init function name prefix (for .c only)", #ifdef YYDEBUG - "\n /y trace lex & yacc activity" + "\n %cy trace lex & yacc activity", #endif - "\n /z suppress shortcutting (.and. & .or.)" - "\n /10 restrict symbol length to 10 significant characters" -/* TODO: "\n @ compile list of modules in " */ + "\n %cz suppress shortcutting (.and. & .or.)", + "\n %c10 restrict symbol length to 10 significant characters", +/* TODO: "\n @ compile list of modules in ", */ "\n" - "\nNotes: Use the specific option character for your platform" - "\n instead of \'/\'." - , szSelf ); + }; + + int iLine; + + printf( "\nSyntax: %s [options]" + "\n", szSelf ); + + for( iLine = 0; iLine < ( sizeof( szOptions ) / sizeof( char * ) ); iLine++ ) + printf( szOptions[ iLine ], OS_OPT_DELIMITER_LIST[ 0 ] ); } /* @@ -98,6 +104,6 @@ void hb_compPrintLogo( void ) { printf( "Harbour Compiler, Build %i%s (%04d.%02d.%02d)\n", hb_build, hb_revision, hb_year, hb_month, hb_day ); - printf( "Copyright 1999, http://www.harbour-project.org\n" ); + printf( "Copyright 1999-2000, http://www.harbour-project.org\n" ); }