]> git.pond.sub.org Git - empserver/blobdiff - src/lib/commands/show.c
Update copyright notice
[empserver] / src / lib / commands / show.c
index 081133da4b5ab44760c6f0bfc154db5568fd41cf..a784e0490d8dc7b8f047aa0c3ec6d52bc5081df1 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2010, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  show.c: Give info on empire objects, planes, boats, nukes, etc.
- * 
+ *
  *  Known contributors to this file:
  *     Julian Onions, 1988
  *     Steve McClure, 1997
@@ -50,11 +50,14 @@ show(void)
     char buf[1024];
     int rlev;
 
-    if (!(p = getstarg(player->argp[1],
-                      "Show what (bridge, item, land, nuke, plane, sect, ship, tower, updates)? ",
-                      buf))
-       || !*p)
+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]);
@@ -124,9 +127,9 @@ show(void)
        return RET_SYN;
     }
 
-    if (!(p = getstarg(player->argp[2],
-                      "Build, stats, or capability data (b,s,c)? ", buf))
-       || !*p)
+    p = getstarg(player->argp[2],
+                "Build, stats, or capability data (b,s,c)? ", buf);
+    if (!p || !*p)
        return RET_SYN;
     pr("Printing for tech level '%d'\n", tlev);
     if (*p == 'B' || *p == 'b')