From 4573aee333eb0a4d2017993a530d19e7e5d7f493 Mon Sep 17 00:00:00 2001
From: Thomas Wiest <twiest@redhat.com>
Date: Thu, 30 Apr 2015 16:18:39 -0400
Subject: added --list-host-types option to opscp

---
 bin/opscp | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'bin/opscp')

diff --git a/bin/opscp b/bin/opscp
index 445c838f5..d76480253 100755
--- a/bin/opscp
+++ b/bin/opscp
@@ -15,6 +15,7 @@ Options:
   -e ENV, --env ENV     Which environment to use
   -t HOST_TYPE, --host-type HOST_TYPE
                         Which host type to use
+  --list-host-types     List all of the host types
   -O OPTION, --option=OPTION
                         SSH option (OPTIONAL)
   -v, --verbose         turn on warning and diagnostic messages (OPTIONAL)
@@ -63,6 +64,10 @@ while [ $# -gt 0 ] ; do
     USER=$1
     shift # get past the value of the option
 
+  elif [ "$1" == "--list-host-types" ] ; then
+    ohi --list-host-types
+    exit 0
+
   elif [ "$1" == "-h" -o "$1" == "--hosts" -o "$1" == "-H" -o "$1" == "--host" ] ||
        [ "$1" == "-o" ] ; then
     echo "ERROR: unknown option $1"
-- 
cgit v1.2.3