From 9ad6766820627f655b068003509696905ec74578 Mon Sep 17 00:00:00 2001
From: Jameson Rollins <jameson.rollins@ligo.org>
Date: Fri, 13 Oct 2017 00:09:02 +0000
Subject: [PATCH] rtcds cli: add 'version' command, and overhaul some command
 parsing and help

change 'log' to 'blog', for 'build log', in case we add a separate command
to view the actual run-time log of a model.

git-svn-id: https://redoubt.ligo-wa.caltech.edu/svn/advLigoRTS/trunk@4521 6dcd42c9-f523-4c6d-aada-af552506706e
---
 support/bin/rtcds.in | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/support/bin/rtcds.in b/support/bin/rtcds.in
index aca9098f0..0ff9fc061 100755
--- a/support/bin/rtcds.in
+++ b/support/bin/rtcds.in
@@ -89,8 +89,9 @@ the kernel header package for the running kernel.  For this system:
 
 /usr/src/linux -> $ls
 
-Please create this link, or set the RCG_IGNORE_KERNEL_RELEASE
+Please create/update this link, or set the RCG_IGNORE_KERNEL_RELEASE
 environment variable to bypass this check."
+
     exit 10
 }
 
@@ -250,13 +251,14 @@ Available commands:
   enable <sys>...|--all      enable system start at boot
   disable <sys>...|--all     disable system start at boot
 
-  log <sys>                  show last compile log for system
-    -i                         show log info
+  blog <sys>                 show last build log for system
+    -i                         print log paths
   list|ls                    list all systems for current host
   lsmod                      list loaded RTS kernel modules
   dtail|dmesg                tail dmesg logs
   env                        print system environment info
-  help                       this help
+  version|--version|-v       print version
+  help|--help|-h             this help
 "
 }
 
@@ -346,7 +348,7 @@ case $cmd in
 	    ${cmd}_sys $@
 	fi
 	;;
-    'log')
+    'blog')
 	format=full
 	if [[ "$1" == '-i' ]] ; then
 	    format=info
@@ -383,6 +385,9 @@ case $cmd in
     'env')
 	check_env
 	;;
+    'version'|'v'|'vers'|'-v'|'--version')
+	echo $RTS_VERSION
+	;;
     'help'|'-h'|'--help')
 	usage
 	;;
-- 
GitLab