summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f2b2450)
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4201
4a8a32a2-be11-0410-ad9d-
d568d2c75423
* src/SDCCast.c (isLoopCountable): fixed bug #1478316
(processParms): fixed bug #1247551
* src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
* src/SDCCast.c (isLoopCountable): fixed bug #1478316
(processParms): fixed bug #1247551
* src/SDCCmain.c (printVersionInfo, printOptions, printUsage,
- parseCmdLine, main): print version to stdout, help to stdout on
- windows and to stderr on all the rest; exit with EXIT_FAILURE if
- no arguments given
+ parseCmdLine, main): print '--version' to stdout,
+ print 'help' to stdout if --help is given,
+ print 'help' to stderr and exit with EXIT_FAILURE if no or bad
+ arguments are given; fixed --help
2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
2006-05-27 Bernhard Held <bernhard AT bernhardheld.de>
char scratchFileName[PATH_MAX];
char buffer[PATH_MAX * 2];
char scratchFileName[PATH_MAX];
char buffer[PATH_MAX * 2];
-#define OPTION_HELP "-help"
-
#define LENGTH(_a) (sizeof(_a)/sizeof(*(_a)))
#define LENGTH(_a) (sizeof(_a)/sizeof(*(_a)))
+#define OPTION_HELP "--help"
#define OPTION_STACK_8BIT "--stack-8bit"
#define OPTION_OUT_FMT_IHX "--out-fmt-ihx"
#define OPTION_OUT_FMT_S19 "--out-fmt-s19"
#define OPTION_STACK_8BIT "--stack-8bit"
#define OPTION_OUT_FMT_IHX "--out-fmt-ihx"
#define OPTION_OUT_FMT_S19 "--out-fmt-s19"
static const OPTION
optionsTable[] = {
{ 0, NULL, NULL, "General options" },
static const OPTION
optionsTable[] = {
{ 0, NULL, NULL, "General options" },
- { 0, "--help", NULL, "Display this help" },
+ { 0, OPTION_HELP, NULL, "Display this help" },
{ 'v', OPTION_VERSION, NULL, "Display sdcc's version" },
{ 0, "--verbose", &options.verbose, "Trace calls to the preprocessor, assembler, and linker" },
{ 'V', NULL, &options.verboseExec, "Execute verbosely. Show sub commands as they are run" },
{ 'v', OPTION_VERSION, NULL, "Display sdcc's version" },
{ 0, "--verbose", &options.verbose, "Trace calls to the preprocessor, assembler, and linker" },
{ 'V', NULL, &options.verboseExec, "Execute verbosely. Show sub commands as they are run" },