potiuk commented on a change in pull request #8796:
URL: https://github.com/apache/airflow/pull/8796#discussion_r422527848
##########
File path: breeze
##########
@@ -804,14 +804,20 @@ function parse_arguments() {
COMMAND_TO_RUN="cleanup_image"
shift ;;
docker-compose)
- if [[ "$#" -lt 2 ]]; then
+ LAST_SUBCOMMAND="${1}"
+ if [[ $# -lt 2 ]]; then
echo "You should specify docker compose command to run"
- exit 1
+ shift
+ RUN_HELP="true"
+ else
+ DOCKER_COMPOSE_COMMAND="${2}"
+ if [[ ${DOCKER_COMPOSE_COMMAND} == "--help" ]]; then
+ RUN_HELP="true"
+ fi
Review comment:
Right. I forgot that the --options are parsed before and removed :).
Good catch. Fixed.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]