mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-01-31 03:50:36 +00:00
Implemented -W? and -f? as aliases to -Whelp and -fhelp
This commit is contained in:
parent
4f00824104
commit
3dbe54f0cd
1 changed files with 2 additions and 2 deletions
4
main.c
4
main.c
|
@ -290,7 +290,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
/* handle all -fflags */
|
||||
case 'f':
|
||||
util_strtocmd(argv[0]+2, argv[0]+2, strlen(argv[0]+2)+1);
|
||||
if (!strcmp(argv[0]+2, "HELP")) {
|
||||
if (!strcmp(argv[0]+2, "HELP") || *(argv[0]+2) == '?') {
|
||||
con_out("Possible flags:\n");
|
||||
for (itr = 0; itr < COUNT_FLAGS; ++itr) {
|
||||
util_strtononcmd(opts_flag_list[itr].name, buffer, sizeof(buffer));
|
||||
|
@ -311,7 +311,7 @@ static bool options_parse(int argc, char **argv) {
|
|||
break;
|
||||
case 'W':
|
||||
util_strtocmd(argv[0]+2, argv[0]+2, strlen(argv[0]+2)+1);
|
||||
if (!strcmp(argv[0]+2, "HELP")) {
|
||||
if (!strcmp(argv[0]+2, "HELP") || *(argv[0]+2) == '?') {
|
||||
con_out("Possible warnings:\n");
|
||||
for (itr = 0; itr < COUNT_WARNINGS; ++itr) {
|
||||
util_strtononcmd(opts_warn_list[itr].name, buffer, sizeof(buffer));
|
||||
|
|
Loading…
Reference in a new issue