cmd: List version in help for commands
authorGeorg Sluyterman <georg@sman.dk>
Wed, 26 Mar 2014 21:48:56 +0000 (21:48 +0000)
committerD Brashear <shadow@your-file-system.com>
Wed, 28 May 2014 14:25:50 +0000 (10:25 -0400)
List version in help for commands using cmd library

Change-Id: I4da64be11244e64d961e8de47cecb24cbbadce32
Reviewed-on: http://gerrit.openafs.org/10956
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>

src/cmd/cmd.c

index 1bbdc8e..7e87475 100644 (file)
@@ -768,7 +768,7 @@ initSyntax(void)
        cmd_AddParm(ts, "-topic", CMD_SINGLE, CMD_REQUIRED, "help string");
 
        cmd_CreateSyntax("version", VersionProc, NULL,
-                        (char *)CMD_HIDDEN);
+                        "show version");
        cmd_CreateSyntax("-version", VersionProc, NULL,
                         (char *)CMD_HIDDEN);
        cmd_CreateSyntax("-help", HelpProc, NULL,