Skip to content

Commit

Permalink
Rename 'args' to 'ctx' and make the argument keyword-only so it doesn…
Browse files Browse the repository at this point in the history
…'t require a default value.
  • Loading branch information
jaraco committed Aug 16, 2024
1 parent 3b55610 commit 3a80b14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions jaraco/develop/projects-run.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ def run(
List[filters.Keyword],
typer.Option('--keyword', '-k', parser=filters.Keyword),
] = [],
args: typer.Context = typer.Option(None),
*,
ctx: typer.Context,
):
cmd = cast(List[str], args.args)
cmd = cast(List[str], ctx.args)
selectors = filters.Selectors(tag + keyword)
for project in filter(selectors, git.projects()):
print(project, flush=True)
Expand Down

0 comments on commit 3a80b14

Please sign in to comment.