mirror of
https://github.com/containers/podman-compose.git
synced 2025-03-11 13:38:10 +01:00
fix parsing args
This commit is contained in:
parent
ed3c033be4
commit
d53ad3217e
@ -740,7 +740,6 @@ class PodmanCompose:
|
|||||||
return self.global_args
|
return self.global_args
|
||||||
|
|
||||||
def _init_global_parser(self, parser):
|
def _init_global_parser(self, parser):
|
||||||
parser.add_argument('args', nargs=argparse.REMAINDER)
|
|
||||||
parser.add_argument("-f", "--file",
|
parser.add_argument("-f", "--file",
|
||||||
help="Specify an alternate compose file (default: docker-compose.yml)",
|
help="Specify an alternate compose file (default: docker-compose.yml)",
|
||||||
type=str, default="docker-compose.yml")
|
type=str, default="docker-compose.yml")
|
||||||
@ -978,6 +977,9 @@ def compose_up_parse(parser):
|
|||||||
help="Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.")
|
help="Scale SERVICE to NUM instances. Overrides the `scale` setting in the Compose file if present.")
|
||||||
parser.add_argument("--exit-code-from", metavar='SERVICE', type=str, default=None,
|
parser.add_argument("--exit-code-from", metavar='SERVICE', type=str, default=None,
|
||||||
help="Return the exit code of the selected service container. Implies --abort-on-container-exit.")
|
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')
|
||||||
|
|
||||||
|
|
||||||
@cmd_parse(podman_compose, 'run')
|
@cmd_parse(podman_compose, 'run')
|
||||||
def compose_run_parse(parser):
|
def compose_run_parse(parser):
|
||||||
|
Loading…
Reference in New Issue
Block a user