Closed
Description
Checklist
- Are you running the latest v2 release? The list of releases is here.
- Did you check the manual for your release? The v2 manual is here.
- Did you perform a search about this feature? Here's the Github guide about searching.
What problem does this solve?
Thank you for this project. It's fantastic. I've been a long time user and I'm very happy.
I just added the ability to use the Aliases
in my yml file when loading through altsrc
(see binwiederhier/ntfy@91594fa#diff-d1253876bc7a1b30f67245948f61e61430af2f3f0bf72780e3c0314a24d152deR43-R50). I was wondering if that was something you'd be interested in adding as a feature.
If not, I'm alright too and you can close this ticket.
Solution description
Example:
altsrc.NewStringFlag(&cli.StringFlag{Name: "listen-http", Aliases: []string{"listen_http", "l"}, ...}),
Should be loadable via the .yml file:
# Currently supported:
listen-http: ":80"
# Would also be supported with the suggested change (see Aliases above):
listen_http: ":80"
l: ":80"