Skip to content

fix(complete): make short options case-sensitive in PowerShell#4992

Merged
epage merged 1 commit intoclap-rs:masterfrom
RubixDev:master
Jul 5, 2023
Merged

fix(complete): make short options case-sensitive in PowerShell#4992
epage merged 1 commit intoclap-rs:masterfrom
RubixDev:master

Conversation

@RubixDev
Copy link
Copy Markdown
Contributor

@RubixDev RubixDev commented Jul 4, 2023

fixes #2145

PowerShell treats CompletionResults with a listItemText of s the same as with S. After some searching, I did not find any setting to make it case-sensitive, so I went with the method suggested in the original issue: appending a space to uppercase options to distinguish them from lowercase option without any visual difference.

@epage epage merged commit f7b32cc into clap-rs:master Jul 5, 2023
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.

clap_generate PowerShell script does not complete case sensitive options like -S. Only completes -s

2 participants