You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if pflag could accept case-insensitive long flag names, perhaps as an option, so that it would treat variations like --baseUrl, --baseURL and --baseurl as one and the same.
Since you are using hugo (which I believe in turn uses spf13/cobra and spf13/pflag) you can check out the "normalized name" support. It allows you to write your own custom function which in your case could translate all flags to lowercase.
It would be great if
pflag
could accept case-insensitive long flag names, perhaps as an option, so that it would treat variations like--baseUrl
,--baseURL
and--baseurl
as one and the same.A discussion that led to this feature request is available at gohugoio/hugo/issues/959
Many thanks!
The text was updated successfully, but these errors were encountered: