forked from extern/podman-compose
fix parsing args
This commit is contained in:
parent
ed3c033be4
commit
d53ad3217e
@ -740,7 +740,6 @@ class PodmanCompose:
|
||||
return self.global_args
|
||||
|
||||
def _init_global_parser(self, parser):
|
||||
parser.add_argument('args', nargs=argparse.REMAINDER)
|
||||
parser.add_argument("-f", "--file",
|
||||
help="Specify an alternate compose file (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.")
|
||||
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.")
|
||||
parser.add_argument('services', metavar='SERVICES', nargs='*',
|
||||
help='service names to start')
|
||||
|
||||
|
||||
@cmd_parse(podman_compose, 'run')
|
||||
def compose_run_parse(parser):
|
||||
|
Loading…
Reference in New Issue
Block a user