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

CLI: Make commands case-insensitive #1548

Closed
reinkrul opened this issue Oct 13, 2022 · 4 comments
Closed

CLI: Make commands case-insensitive #1548

reinkrul opened this issue Oct 13, 2022 · 4 comments
Labels
good first issue Good for newcomers

Comments

@reinkrul
Copy link
Member

Quality of life. Introduced in Cobra 1.6: spf13/cobra#1802

@reinkrul reinkrul added the good first issue Good for newcomers label Oct 13, 2022
@reinkrul reinkrul changed the title CLI: Make commands case insensitive CLI: Make commands case-insensitive Oct 13, 2022
@pascaldekloe
Copy link
Contributor

Really? Why?

@reinkrul
Copy link
Member Author

Pro: maybe it helps some Windows user? What do you see as disadvantage?

@pascaldekloe
Copy link
Contributor

Do Windows users type in upper-case? With multiple ways to do the same thing, you generally need a good reason to do so. I can not forse all scenario in which it may lead to trouble. Commands are tokens now. Easy to find. Easy to exclude.

@reinkrul
Copy link
Member Author

Teaching our users not to type in random stuff in random ways is probably a good idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants