Committed by
Gerrit Code Review
Fixing usage of onos-app shell utility.
Change-Id: Ibb935312ffc2a9e2eb9e1687d36be23541094a2c
Showing
1 changed file
with
7 additions
and
4 deletions
... | @@ -12,12 +12,15 @@ export HDR="-HContent-Type:application/octet-stream" | ... | @@ -12,12 +12,15 @@ export HDR="-HContent-Type:application/octet-stream" |
12 | export curl="curl -sS" | 12 | export curl="curl -sS" |
13 | 13 | ||
14 | function usage { | 14 | function usage { |
15 | - echo "usage: onos-app {install|install!} <app-file>" >&2 | 15 | + echo "usage: onos-app <node-ip> list" >&2 |
16 | - echo " onos-app {reinstall|reinstall!} <app-name> <app-file>" >&2 | 16 | + echo " onos-app <node-ip> {install|install!} <app-file>" >&2 |
17 | - echo " onos-app {activate|deactivate|uninstall} <app-name>" >&2 | 17 | + echo " onos-app <node-ip> {reinstall|reinstall!} <app-name> <app-file>" >&2 |
18 | + echo " onos-app <node-ip> {activate|deactivate|uninstall} <app-name>" >&2 | ||
18 | exit 1 | 19 | exit 1 |
19 | } | 20 | } |
20 | 21 | ||
22 | +[ -z $node -o "$node" = "-h" -o "$node" = "--help" -o "$node" = "-?" ] && usage | ||
23 | + | ||
21 | case $cmd in | 24 | case $cmd in |
22 | list) $curl -X GET $URL;; | 25 | list) $curl -X GET $URL;; |
23 | install) | 26 | install) |
... | @@ -49,4 +52,4 @@ case $cmd in | ... | @@ -49,4 +52,4 @@ case $cmd in |
49 | *) usage;; | 52 | *) usage;; |
50 | esac | 53 | esac |
51 | 54 | ||
52 | -echo #new line for prompt | 55 | +echo # new line for prompt | ... | ... |
-
Please register or login to post a comment