Some cleanups and what not.

This commit is contained in:
Dale Weiler 2013-01-30 06:13:11 +00:00
parent ebd6a1ae95
commit 98fd5cd429
2 changed files with 11 additions and 6 deletions

View file

@ -1132,15 +1132,14 @@ enum {
OPTION_COUNT
};
/* disabled for now */
#if 0
static const char *opts_options_descriptions[OPTION_COUNT + 1] = {
static const char *opts_options_descriptions[] = {
# define GMQCC_TYPE_OPTIONS
# define GMQCC_DEFINE_FLAG(X, Y) Y,
# include "opts.def"
""
"<null>"
};
#endif
extern unsigned int opts_optimizationcount[COUNT_OPTIMIZATIONS];

8
main.c
View file

@ -460,7 +460,13 @@ static bool options_parse(int argc, char **argv) {
}
/* All long options without arguments */
else if (!strcmp(argv[0]+2, "help")) {
usage();
/* TODO .. map name back .. prittery print of
* options and their associations.
*/
for (itr = 0; itr < OPTION_COUNT; itr++) {
con_out("%s\n\n", opts_options_descriptions[itr]);
}
exit(0);
}
else if (!strcmp(argv[0]+2, "version")) {