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

proposal: flag: allow specifying another param for long name with double dashes #71073

Closed
lorypelli opened this issue Dec 31, 2024 · 3 comments
Closed
Labels
Milestone

Comments

@lorypelli
Copy link

Proposal Details

image
Allow specifying another param before default value that would be long name with double dashes (but short name with single dashes would also work and even long name with single dashes)
For example
-d would become --dir but also -dir would work and, as it does now, --d

@gopherbot gopherbot added this to the Proposal milestone Dec 31, 2024
@artyom
Copy link
Member

artyom commented Dec 31, 2024

@lorypelli please note that you can already achieve this effect by implementing two separate flag definitions: https://go.dev/play/p/l2Pefsnk82K

@lorypelli
Copy link
Author

@lorypelli please note that you can already achieve this effect by implementing two separate flag definitions: https://go.dev/play/p/l2Pefsnk82K

I would need to change my implementation more than if with this change...

@seankhliao
Copy link
Member

Duplicate of #40138

@seankhliao seankhliao marked this as a duplicate of #40138 Dec 31, 2024
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants