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

show correct auto complete value for nargs option in combination with flag option #2816

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

msaipraneeth
Copy link

This pull request resolves an issue in the autocompletion logic for options with nargs > 1 when combined with boolean options. Previously, autocompletion would suggest incorrect values, leading to confusion and an inconsistent user experience.

fixes #2813

  • Add tests that demonstrate the correct behavior of the change. Tests
    should fail without the change.
  • Add or update relevant docs, in the docs folder and in code.
  • Add an entry in CHANGES.rst summarizing the change and linking to the issue.

@AndreasBackx AndreasBackx changed the base branch from stable to main December 22, 2024 21:00
@AndreasBackx AndreasBackx changed the base branch from main to stable December 22, 2024 21:03
@AndreasBackx AndreasBackx changed the base branch from stable to main December 22, 2024 21:12
@msaipraneeth msaipraneeth force-pushed the bugfix/OptionsAutoCompletion branch from f68161b to c9e86aa Compare January 22, 2025 08:16
@msaipraneeth msaipraneeth changed the base branch from main to stable January 22, 2025 08:35
@msaipraneeth msaipraneeth force-pushed the bugfix/OptionsAutoCompletion branch from c9e86aa to 71cec9c Compare January 22, 2025 08:41
@msaipraneeth msaipraneeth changed the base branch from stable to main January 22, 2025 08:46
@msaipraneeth msaipraneeth force-pushed the bugfix/OptionsAutoCompletion branch from 71cec9c to 952899e Compare January 22, 2025 08:49
@msaipraneeth msaipraneeth changed the base branch from main to release-8.2.0 January 22, 2025 08:55
@msaipraneeth msaipraneeth changed the base branch from release-8.2.0 to stable January 22, 2025 08:59
@msaipraneeth msaipraneeth changed the base branch from stable to main January 22, 2025 08:59
@msaipraneeth
Copy link
Author

@AndreasBackx Have we selected the correct bash branch for this PR?

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.

_is_incomplete_option incorrectly processes last_option in loop
2 participants