Skip to content

Standardise the way to access functions with kw args#127

Merged
scudette merged 1 commit intomasterfrom
kwargs
Mar 12, 2026
Merged

Standardise the way to access functions with kw args#127
scudette merged 1 commit intomasterfrom
kwargs

Conversation

@scudette
Copy link
Contributor

Some functions require specific args but also allow any additional keywords. This PR adds a standard way to extract such args:

kwargs, err := arg_parser.ExtractKWArgsWithContext(ctx, scope, args, arg)

The free form args are returned in the kwargs dict while the specific args are parsed as usual into the arg target.

Some functions require specific args but also allow any additional
keywords. This PR adds a standard way to extract such args:

```
kwargs, err := arg_parser.ExtractKWArgsWithContext(ctx, scope, args, arg)
```

The free form args are returned in the kwargs dict while the specific
args are parsed as usual into the arg target.
@scudette scudette merged commit 92eac12 into master Mar 12, 2026
5 checks passed
@scudette scudette deleted the kwargs branch March 12, 2026 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant