Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keyword-only arguments as options (closes #191) #199

Merged
merged 16 commits into from
Oct 21, 2023

Conversation

neithere
Copy link
Owner

@neithere neithere commented Oct 20, 2023

The original workflow of func-args-to-CLI-args inferring has been split into policies from which the user can choose.

The default policy, BY_NAME_IF_HAS_DEFAULT, closely follows the pre-v.0.30 behaviour (although there's a minor breaking change).

The new and recommended policy, BY_NAME_IF_KWONLY, enables for finer control over the resulting required vs. optional and positional vs. named arguments.

@neithere neithere merged commit 3cb9261 into release/v0.30.0 Oct 21, 2023
7 checks passed
@neithere neithere deleted the 191_keyword-only_arguments_as_options branch October 21, 2023 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant