]> git.pond.sub.org Git - empserver/commitdiff
(show_opts): Pretend option SHIPNAMES still exists for the benefit of
authorMarkus Armbruster <armbru@pond.sub.org>
Fri, 21 Oct 2005 18:16:50 +0000 (18:16 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Fri, 21 Oct 2005 18:16:50 +0000 (18:16 +0000)
clients that still depend on it.

src/lib/commands/vers.c

index 42d02af4f8dc1504a4099f6037e19ea16486e10b..f2de101eeb0204b0c765c9be59c7b45df6dc170f 100644 (file)
@@ -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);
+    }
 }