Removed necessity to use `--` after control commands

This commit is contained in:
jpk 2023-01-12 15:21:18 +01:00
parent 1c06a5a4fa
commit 8a21bb3834
1 changed files with 6 additions and 2 deletions

View File

@ -54,10 +54,14 @@ def edit(ctx, service):
ctx.abort()
@click.command()
@click.pass_context
@click.command(
context_settings=dict(
ignore_unknown_options=True,
)
)
@click.argument("service", nargs=1, shell_complete=complete_service_name)
@click.argument("command", nargs=-1)
@click.pass_context
def control(ctx, service, command):
try:
compose_file = services.get_compose_file(