X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=main.c;h=f6d9b3163907d2d5d05608e1dfb80a5c7e8c8038;hb=6c4c37308969b6277534d6d6e57d5eb3fe791d63;hp=2b055d2210f35bf59d556053f366e27c7c12e3d8;hpb=3652a122ed44e2f7ba39874df2d2f66f4a399ffd;p=xonotic%2Fgmqcc.git diff --git a/main.c b/main.c index 2b055d2..f6d9b31 100644 --- a/main.c +++ b/main.c @@ -310,10 +310,10 @@ static bool options_parse(int argc, char **argv) { case 'f': util_strtocmd(argv[0]+2, argv[0]+2, strlen(argv[0]+2)+1); if (!strcmp(argv[0]+2, "HELP") || *(argv[0]+2) == '?') { - con_out("Possible flags:\n"); + con_out("Possible flags:\n\n"); for (itr = 0; itr < COUNT_FLAGS; ++itr) { util_strtononcmd(opts_flag_list[itr].name, buffer, sizeof(buffer)); - con_out(" -f%s\n", buffer); + con_out(" -f%s:\n%s\n\n", buffer, opts_flag_list[itr].description); } exit(0); } @@ -334,7 +334,7 @@ static bool options_parse(int argc, char **argv) { con_out("Possible warnings:\n"); for (itr = 0; itr < COUNT_WARNINGS; ++itr) { util_strtononcmd(opts_warn_list[itr].name, buffer, sizeof(buffer)); - con_out(" -W%s\n", buffer); + con_out(" -W%s:\n%s\n\n\n", buffer, opts_warn_list[itr].description); } exit(0); } @@ -404,7 +404,7 @@ static bool options_parse(int argc, char **argv) { con_out("Possible optimizations:\n"); for (itr = 0; itr < COUNT_OPTIMIZATIONS; ++itr) { util_strtononcmd(opts_opt_list[itr].name, buffer, sizeof(buffer)); - con_out(" -O%-20s (-O%u)\n", buffer, opts_opt_oflag[itr]); + con_out(" -O%-20s (-O%u):\n%s\n\n", buffer, opts_opt_oflag[itr], opts_opt_list[itr].description); } exit(0); }