client/X11: Mention also aliases in man page
Aliases are not currently mentioned in man page. Let's mention them.
@@ -147,11 +147,14 @@ int main(int argc, char *argv[])
{
const COMMAND_LINE_ARGUMENT_A *arg = &args[x];
char *name = tr_esc_str((LPSTR) arg->Name, FALSE);
+ char *alias = tr_esc_str((LPSTR) arg->Alias, FALSE);
char *format = tr_esc_str(arg->Format, TRUE);
char *text = tr_esc_str((LPSTR) arg->Text, FALSE);
fprintf(fp, "\t\t\t<varlistentry>\n");
+ do
+ {
fprintf(fp, "\t\t\t\t<term><option>");
if (arg->Flags == COMMAND_LINE_VALUE_BOOL)
fprintf(fp, "%s", arg->Default ? "-" : "+");
@@ -170,6 +173,14 @@ int main(int argc, char *argv[])
fprintf(fp, "</term>\n");
+ if (alias == name)
+ break;
+
+ free (name);
+ name = alias;
+ }
+ while (alias);
+
if (text)
{
fprintf(fp, "\t\t\t\t<listitem>\n");
