Skip to content

Commit 7fccb32

Browse files
committed
fix
Signed-off-by: SequeI <[email protected]>
1 parent c7f46af commit 7fccb32

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/agent/cli/cli_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@ def handle_parse_result(self, ctx, opts, args):
5151
other_used = [name for name in self.mutually_exclusive if opts.get(name)]
5252
if other_used and opts.get(self.name):
5353
raise click.UsageError(
54-
f"Option '{self.name.replace('_', '-')}' is mutually exclusive with: {', '.join(other_used)}"
54+
f"Option '{self.name.replace('_', '-')}' is mutually exclusive with: {', '.join(n.replace('_', '-') for n in other_used)}"
5555
)
5656
return super().handle_parse_result(ctx, opts, args)

src/agent/cli/commands/plugin_manage.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ def simple_edit_distance(s1: str, s2: str) -> int:
7373
@click.option(
7474
"--add-scope",
7575
"-a",
76-
"--add_scope",
7776
multiple=True,
7877
cls=MutuallyExclusiveOption,
7978
mutually_exclusive=["remove_scope"],
@@ -82,22 +81,21 @@ def simple_edit_distance(s1: str, s2: str) -> int:
8281
@click.option(
8382
"--remove-scope",
8483
"-r",
85-
"--remove_scope",
8684
multiple=True,
8785
cls=MutuallyExclusiveOption,
8886
mutually_exclusive=["add_scope"],
8987
help="Remove scopes: -r capability_id::scope (repeatable).",
9088
)
9189
@click.option("-n", "--dry-run", is_flag=True, help="Show planned changes only (File diff, no write).")
92-
@click.option("--config", type=click.Path(path_type=Path), default=Path("agentup.yml"), show_default=True)
90+
@click.option("--config", type=click.Path(path_type=Path), show_default=True)
9391
@click.pass_context
9492
def manage(
9593
ctx: click.Context,
9694
plugin_name: str,
9795
add_scope: tuple[str, ...],
9896
remove_scope: tuple[str, ...],
9997
dry_run: bool,
100-
config: Path | None,
98+
config: Path | None = None,
10199
):
102100
"""Add or remove scopes on a plugin capability in agentup.yml.
103101

0 commit comments

Comments
 (0)