Merge pull request #3056 from dlespiau/20170711-weave-instant-help
Make help instantaneous in the weave script
This commit is contained in:
commit
efde637e1c
1 file changed
+5
-5
@@ -222,9 +222,11 @@ kill_container() {
|
|||||||
|
|
||||||
[ "$1" = "--local" ] && shift 1 && IS_LOCAL=1
|
[ "$1" = "--local" ] && shift 1 && IS_LOCAL=1
|
||||||
|
|
||||||
# "--help|help" are special because we always want to process them
|
# "--help|help" and "<command> --help" are special because we always want to
|
||||||
# at the client end.
|
# process them at the client end.
|
||||||
handle_help_arg "$1" || handle_help_arg "--$1"
|
handle_help_arg "$1"
|
||||||
|
handle_help_arg "--$1"
|
||||||
|
handle_help_arg "$2"
|
||||||
|
|
||||||
if [ "$1" = "version" -a -z "$IS_LOCAL" ] ; then
|
if [ "$1" = "version" -a -z "$IS_LOCAL" ] ; then
|
||||||
# non-local "version" is special because we want to show the
|
# non-local "version" is special because we want to show the
|
||||||
@@ -1343,8 +1345,6 @@ fi
|
|||||||
COMMAND=$1
|
COMMAND=$1
|
||||||
shift 1
|
shift 1
|
||||||
|
|
||||||
handle_help_arg "$1"
|
|
||||||
|
|
||||||
case "$COMMAND" in
|
case "$COMMAND" in
|
||||||
setup)
|
setup)
|
||||||
for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do
|
for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do
|
||||||
|
|||||||
Reference in new issue
Block a user