Skip to content

Commit

Permalink
kart git: Don't double -- for git commands
Browse files Browse the repository at this point in the history
  • Loading branch information
craigds committed Nov 2, 2022
1 parent adb2580 commit 71c3843
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions kart/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import inspect
import logging
import os
import io
import pathlib
import re
import subprocess
Expand All @@ -22,6 +21,7 @@
KartGroup,
)
from .context import Context
from kart.parse_args import PreserveDoubleDash
from kart.subprocess_util import run

MODULE_COMMANDS = {
Expand Down Expand Up @@ -268,7 +268,11 @@ def gc(ctx, args):
ctx.invoke(git, args=["gc", *args])


@cli.command(context_settings=dict(ignore_unknown_options=True), hidden=True)
@cli.command(
context_settings=dict(ignore_unknown_options=True),
hidden=True,
cls=PreserveDoubleDash,
)
@click.pass_context
@click.argument("args", nargs=-1, type=click.UNPROCESSED)
def git(ctx, args):
Expand Down

0 comments on commit 71c3843

Please sign in to comment.