(show_opts): Pretend option SHIPNAMES still exists for the benefit of
clients that still depend on it.
This commit is contained in:
parent
cf426896af
commit
ee19f5f944
1 changed files with 15 additions and 0 deletions
|
@ -193,4 +193,19 @@ show_opts(int val)
|
|||
pr("%s%s", sep, op->opt_key);
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue