mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-17 09:02:25 +00:00
Some cleanups and what not.
This commit is contained in:
parent
ebd6a1ae95
commit
98fd5cd429
2 changed files with 11 additions and 6 deletions
9
gmqcc.h
9
gmqcc.h
|
@ -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
8
main.c
|
@ -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")) {
|
||||
|
|
Loading…
Reference in a new issue