Fixing usage of onos-app shell utility.
Change-Id: Ibb935312ffc2a9e2eb9e1687d36be23541094a2c
diff --git a/tools/test/bin/onos-app b/tools/test/bin/onos-app
index 58b6c08..368615a 100755
--- a/tools/test/bin/onos-app
+++ b/tools/test/bin/onos-app
@@ -12,12 +12,15 @@
export curl="curl -sS"
function usage {
- echo "usage: onos-app {install|install!} <app-file>" >&2
- echo " onos-app {reinstall|reinstall!} <app-name> <app-file>" >&2
- echo " onos-app {activate|deactivate|uninstall} <app-name>" >&2
+ echo "usage: onos-app <node-ip> list" >&2
+ echo " onos-app <node-ip> {install|install!} <app-file>" >&2
+ echo " onos-app <node-ip> {reinstall|reinstall!} <app-name> <app-file>" >&2
+ echo " onos-app <node-ip> {activate|deactivate|uninstall} <app-name>" >&2
exit 1
}
+[ -z $node -o "$node" = "-h" -o "$node" = "--help" -o "$node" = "-?" ] && usage
+
case $cmd in
list) $curl -X GET $URL;;
install)
@@ -49,4 +52,4 @@
*) usage;;
esac
-echo #new line for prompt
+echo # new line for prompt