From 7eacf1469312a3dc73d8d061a6eae0fe61cf38c6 Mon Sep 17 00:00:00 2001 From: Johannes Laurin Hoermann Date: Fri, 22 May 2020 17:06:45 +0200 Subject: [PATCH] MAINT: resolve https://github.com/containers/podman-compose/pull/180#issuecomment-632722974 --- podman_compose.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/podman_compose.py b/podman_compose.py index ccc5c33..7f4b064 100755 --- a/podman_compose.py +++ b/podman_compose.py @@ -1280,8 +1280,6 @@ 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, @@ -1296,8 +1294,6 @@ def compose_up_parse(parser): help="Return the exit code of the selected service container. Implies --abort-on-container-exit.") parser.add_argument('services', metavar='SERVICES', nargs='*', help='service names to start') - # might want to add build-related options to 'up' command as 'up' might evoke build if images not available - compose_build_parse(parser) @cmd_parse(podman_compose, 'run') def compose_run_parse(parser): @@ -1368,7 +1364,7 @@ def compose_ps_parse(parser): parser.add_argument("-q", "--quiet", help="Only display container IDs", action='store_true') -@cmd_parse(podman_compose, 'build') +@cmd_parse(podman_compose, ['build', 'up']) def compose_build_parse(parser): parser.add_argument("--pull", help="attempt to pull a newer version of the image", action='store_true')