jessevdk / go-flags

go command line option parser
http://godoc.org/github.com/jessevdk/go-flags
BSD 3-Clause "New" or "Revised" License
2.57k stars 306 forks source link

alias for flags #287

Open RichardoC opened 5 years ago

RichardoC commented 5 years ago

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 boollong:"nocache" alias:"no-cache" description:"Disable caches }`

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

pashagolub commented 3 years ago

Any news on this?

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

RichardoC commented 3 years ago

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