From 162c79bb735709627c21ba33c3bb0f5971e41e1d Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 1 Aug 2009 15:27:20 -0400 Subject: [PATCH] Fix show help text to include news and product Commit 1bca66c0 added show news and commit 71bbd642 show product without updating the help text. Fix that. The prompt is now too long, so add option '?' to show it, and change the prompt to refer to that. --- src/lib/commands/show.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lib/commands/show.c b/src/lib/commands/show.c index e2e59b04..677d8c8a 100644 --- a/src/lib/commands/show.c +++ b/src/lib/commands/show.c @@ -50,11 +50,14 @@ show(void) char buf[1024]; int rlev; - p = getstarg(player->argp[1], - "Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)? ", - buf); +again: + p = getstarg(player->argp[1], "Show what ('?' to list options)? ", buf); if (!p || !*p) return RET_SYN; + if (*p == '?') { + pr("bridge, item, land, news, nuke, plane, sect, ship, product, tower, updates\n"); + goto again; + } natp = getnatp(player->cnum); rlev = (int)(1.25 * natp->nat_level[NAT_RLEV]);