go-flags icon indicating copy to clipboard operation
go-flags copied to clipboard

alias for flags

Open RichardoC opened this issue 6 years ago • 2 comments

Could the alias option be added for flags as well as commands? It would be handy to be able to put common misspellings/punctuation as options.

For example FeatureFlags struct { NoCache bool long:"nocache" alias:"no-cache" description:"Disable caches }`

Currently trying to add this functionality, any pointers would be appreciated https://github.com/RichardoC/go-flags

RichardoC avatar Nov 22 '18 16:11 RichardoC

Any news on this?

I need to rename a flag and alias would help for backward compatibility

pashagolub avatar Nov 04 '20 10:11 pashagolub

Still hoping that this feature gets added, I wasn't able to add it at the time I was experimenting with this

RichardoC avatar Nov 04 '20 14:11 RichardoC