From ee19f5f94496b5248d808967d7f626c8bd98464a Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Fri, 21 Oct 2005 18:16:50 +0000 Subject: [PATCH] (show_opts): Pretend option SHIPNAMES still exists for the benefit of clients that still depend on it. --- src/lib/commands/vers.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/lib/commands/vers.c b/src/lib/commands/vers.c index 42d02af4..f2de101e 100644 --- a/src/lib/commands/vers.c +++ b/src/lib/commands/vers.c @@ -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); + } }