(show_opts): Pretend option SHIPNAMES still exists for the benefit of

clients that still depend on it.
This commit is contained in:
Markus Armbruster 2005-10-21 18:16:50 +00:00
parent cf426896af
commit ee19f5f944

View file

@ -193,4 +193,19 @@ show_opts(int val)
pr("%s%s", sep, op->opt_key); pr("%s%s", sep, op->opt_key);
sep = ", "; sep = ", ";
} }
/*
* OBSOLETE: Ships used to be printed differently depending on
* option SHIPNAMES. Clients had to know whether SHIPNAMES was
* one to parse this. To ease the transition, pretend the option
* still exists.
*/
if (val) {
col += strlen(sep) + 9;
if (col > 70) {
pr(",\n ");
sep = "";
}
pr("%sSHIPNAMES", sep, op->opt_key);
}
} }