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

Scan for positional items instead of trying to take the next available #302

Merged
merged 2 commits into from
Sep 30, 2023

Conversation

pacak
Copy link
Owner

@pacak pacak commented Sep 30, 2023

positional should be used either after all the named items or as an item adjacent to a named item in some way, still after all the named items within the scope.

In case of valid user input scanning for or picking up the front item gives the same results. When user specifies an invalid item - it will not be consumed during normal scanning so picking the front item fails.

Error from positional item failing with "not present" will take the priority over "not expected" from invalid item resulting in a bad errormessage.

instead of picking the next unused one.

`positional` should be used either after all the named items or as an
item adjacent to a named item in some way, still after all the named
items within the scope.

In case of valid user input scanning for or picking up the front item
gives the same results. When user specifies an invalid item - it will
not be consumed during normal scanning so picking the front item fails.

Error from positional item failing with "not present" will take the
priority over "not expected" from invalid item resulting in a bad error
message.
@pacak pacak merged commit c919d73 into master Sep 30, 2023
3 checks passed
@pacak pacak deleted the scan-pos branch September 30, 2023 17:59
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