ff icon indicating copy to clipboard operation
ff copied to clipboard

Case sensitive short form

Open danvirsen opened this issue 7 months ago • 0 comments

Hi!

I migrated to ff a good while ago but one thing that I really miss from our old solution is the possibility to have case sensitive short forms for flags. As an example, we take in a "min" and "max" value in an application. Previously we accepted these as -m, --min and -M, --max which felt nice and intuitive. I had to switch that to -n, --min and -m, --max which doesn't make much sense to me. After checking a couple of cli tools it seems like case-sensitive short-form flags and option names is the norm.

The error message also still has the casing.

Error: -M, --max: duplicate flag (-m, --min)

Would it perhaps be solved automatically if only long-form flags were allowed in config files and environment variables, like we touched on here https://github.com/peterbourgon/ff/issues/130#issuecomment-1944531897?

What are your thoughts on this?

danvirsen avatar May 16 '25 08:05 danvirsen