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];
}
/* 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")) {