Updated the warning messages displayed by jclouds script.
diff --git a/assembly/src/main/filtered-resources/unix/bin/jclouds b/assembly/src/main/filtered-resources/unix/bin/jclouds
index f007fd4..b7d8277 100644
--- a/assembly/src/main/filtered-resources/unix/bin/jclouds
+++ b/assembly/src/main/filtered-resources/unix/bin/jclouds
@@ -37,12 +37,37 @@
validateArguments() {
if [ "x$CATEGORY" == "x" ]; then
- die "Usage:jclouds {category} {action} {arguments}."
+ echo "Usage:jclouds {category} {action} {options/arguments}."
+ echo ""
+ echo "Categories: node, group, image, location hardware"
+ echo "Actions: list, create, destroy, runscript"
+ echo ""
+ echo "Options:"
+ echo "--proivder:\t\t The id of the provider."
+ echo "--api:\t\t\t The id of the api."
+ echo "--endpoint:\t\t The endpoint."
+ echo "--identity:\t\t The identity."
+ echo "--credential:\t\t The credential."
+ exit -1
fi
if [ "x$ACTION" == "x" ]; then
- die "Usage:jclouds {category} {action} {arguments}."
+ echo "Usage:jclouds {category} {action} {options/arguments}."
+ echo ""
+ echo "Categories: node, group, image, location hardware"
+ echo "Actions: list, create, destroy, runscript"
+ echo ""
+ echo "Options:"
+ echo "--proivder:\t\t The id of the provider."
+ echo "--api:\t\t\t The id of the api."
+ echo "--endpoint:\t\t The endpoint."
+ echo "--identity:\t\t The identity."
+ echo "--credential:\t\t The credential."
+ exit -1
fi
}
+warn() {
+ echo "${PROGNAME}: $*"
+}
die() {
warn "$*"