ref: a2306c4f3b450cc9959828b90cab1d48bd9b188c
parent: 2873499cdef5b25c0a38634d9d68ec7f0f1f11e6
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Mon Aug 21 17:12:32 EDT 2017
print help options in help
--- a/frontend/main.c
+++ b/frontend/main.c
@@ -315,6 +315,8 @@
switch (mode)
{
case '?':
+ case 'h':
+ case 'H':
printf("Help options:\n"
"\t-h\t\tShort help on using FAAC\n"
"\t-H\t\tDescription of all options for FAAC.\n"
@@ -321,19 +323,21 @@
"\t--license\tLicense terms for FAAC.\n");
for (cnt = 0; g_help[cnt].id; cnt++)
printf("\t%s\t%s\n", g_help[cnt].option, g_help[cnt].name);
- break;
- case 'h':
+ if (mode == 'h')
+ {
for (cnt = 0; cnt < 2; cnt++)
{
printf("%s:\n", g_help[cnt].name);
help0(g_help[cnt].help, 0);
}
- break;
- case 'H':
+ }
+ if (mode == 'H')
+ {
for (cnt = 0; cnt < g_help[cnt].id; cnt++)
{
printf("%s:\n", g_help[cnt].name);
help0(g_help[cnt].help, 1);
+ }
}
break;
default: