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

Proc me up again #652

Merged
merged 13 commits into from
Jun 1, 2022
Merged

Proc me up again #652

merged 13 commits into from
Jun 1, 2022

Conversation

gabsi26
Copy link
Contributor

@gabsi26 gabsi26 commented May 31, 2022

This is a follow-up PR to #643 dealing with some of the suggestions provided there.

Now the possible annotations for an argument are permutations of default, min, max with = and a value as well as empty or no parentheses.

If supplied min and max values are automatically checked.
No implicit determination of default values takes place anymore

gabsi26 added 11 commits May 31, 2022 17:10
Signed-off-by: gabsi26 <[email protected]>
Signed-off-by: gabsi26 <[email protected]>
If no `default` is supplied now the parameter needs to be given.
`min` and `max` no longer contribute as replacement `default`.

Automatic checks for minimum and maximum added

Signed-off-by: gabsi26 <[email protected]>
Signed-off-by: gabsi26 <[email protected]>
Signed-off-by: gabsi26 <[email protected]>
Signed-off-by: gabsi26 <[email protected]>
If no `default` is supplied now the parameter needs to be given.
`min` and `max` no longer contribute as replacement `default`.

Automatic checks for minimum and maximum added

Signed-off-by: gabsi26 <[email protected]>
Signed-off-by: gabsi26 <[email protected]>
@gabsi26 gabsi26 requested a review from hannobraun as a code owner May 31, 2022 15:23
Copy link
Owner

@hannobraun hannobraun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @gabsi26, looks great!

@hannobraun hannobraun merged commit d59e7eb into hannobraun:main Jun 1, 2022
@gabsi26 gabsi26 deleted the proc_me_up_again branch June 1, 2022 12:11
@gabsi26
Copy link
Contributor Author

gabsi26 commented Jun 1, 2022

Currently if a user decides not to supply any metadata an annotation like #[value] is still required in front of the argument.
Do you think this requirement should be removed? @hannobraun

@hannobraun
Copy link
Owner

Yes, that sounds reasonable, @gabsi26.

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.

2 participants