From e7b1382b1b5685a9224bee85cca3385eb7ce203c Mon Sep 17 00:00:00 2001 From: Andrej Zieger Date: Tue, 28 Apr 2020 00:20:19 +0200 Subject: [PATCH] Add --build-arg to 'up' (Fixes #161) --- podman_compose.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/podman_compose.py b/podman_compose.py index b3ac14f..3a0f09c 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1278,6 +1278,8 @@ def compose_up_parse(parser): help="Don't start the services after creating them.") parser.add_argument("--build", action='store_true', help="Build images before starting containers.") + parser.add_argument("--build-arg", metavar="key=val", action="append", default=[], + help="Set build-time variables for services.") parser.add_argument("--abort-on-container-exit", action='store_true', help="Stops all containers if any container was stopped. Incompatible with -d.") parser.add_argument("-t", "--timeout", type=float, default=10,