diff options
author | Thomas Wiest <twiest@users.noreply.github.com> | 2015-04-30 16:52:56 -0400 |
---|---|---|
committer | Thomas Wiest <twiest@users.noreply.github.com> | 2015-04-30 16:52:56 -0400 |
commit | ec9ee1198009c11175774497d55b1f9864a7da6e (patch) | |
tree | b2d87581be3a149100036da854a484aaff3da690 /bin/opscp | |
parent | 228f8822bb746d89972def65b0b61c1412402a6a (diff) | |
parent | 4573aee333eb0a4d2017993a530d19e7e5d7f493 (diff) | |
download | openshift-ec9ee1198009c11175774497d55b1f9864a7da6e.tar.gz openshift-ec9ee1198009c11175774497d55b1f9864a7da6e.tar.bz2 openshift-ec9ee1198009c11175774497d55b1f9864a7da6e.tar.xz openshift-ec9ee1198009c11175774497d55b1f9864a7da6e.zip |
Merge pull request #197 from twiest/pr
added --list-host-types option to opscp
Diffstat (limited to 'bin/opscp')
-rwxr-xr-x | bin/opscp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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" |