From dd7bf70df8c305054cccb5cbd14a879a9c03bafb Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sat, 30 Nov 2019 23:48:42 +0100 Subject: [PATCH] fix: missing options in ``--help`` options Signed-off-by: Valentin Lab --- bin/compose-core | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/compose-core b/bin/compose-core index 7073dad..5c64271 100755 --- a/bin/compose-core +++ b/bin/compose-core @@ -3591,7 +3591,12 @@ display_help() { echo " -d, --debug Print full debugging information (sets also verbose)" echo " --dry-compose-run If docker-compose will be run, only print out what" echo " command line will be used." - echo " --rebuild-relations-to-service, -R SERVICE" + echo " --no-relations Do not run any relation script" + echo " --no-hooks Do not run any init script" + echo " --no-init Do not run any init script" + echo " --without-relation RELATION " + echo " Do not run given relation" + echo " -R, --rebuild-relations-to-service SERVICE" echo " Will rebuild all relations to given service" echo " --add-compose-content, -Y YAML" echo " Will merge some direct YAML with the current compose" @@ -3885,7 +3890,7 @@ while read-0 arg; do rebuild_relations_to_service+=("$value") shift ;; - --debug) + --debug|-d) export DEBUG=true export VERBOSE=true #compose_opts+=("--verbose" "--log-level" "DEBUG") @@ -4123,7 +4128,7 @@ if [ "$full_init" ]; then fi ## Get relations - if [ -z "$no_relations" ]; then + if [[ -z "$no_relations" && -z "$no_hooks" ]]; then if [ "${#rebuild_relations_to_service[@]}" != 0 ]; then rebuild_relations_to_service=$(get_master_services "${rebuild_relations_to_service[@]}") || return 1 rebuild_relations_to_service=($rebuild_relations_to_service)