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
|
||||
|
||||
# "--help|help" are special because we always want to process them
|
||||
# at the client end.
|
||||
handle_help_arg "$1" || handle_help_arg "--$1"
|
||||
# "--help|help" and "<command> --help" are special because we always want to
|
||||
# process them at the client end.
|
||||
handle_help_arg "$1"
|
||||
handle_help_arg "--$1"
|
||||
handle_help_arg "$2"
|
||||
|
||||
if [ "$1" = "version" -a -z "$IS_LOCAL" ] ; then
|
||||
# non-local "version" is special because we want to show the
|
||||
@@ -1343,8 +1345,6 @@ fi
|
||||
COMMAND=$1
|
||||
shift 1
|
||||
|
||||
handle_help_arg "$1"
|
||||
|
||||
case "$COMMAND" in
|
||||
setup)
|
||||
for img in $IMAGE $EXEC_IMAGE $WEAVEDB_IMAGE ; do
|
||||
|
||||
Reference in new issue
Block a user