Skip to content

Case sensitive short form #145

@danvirsen

Description

@danvirsen

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 #130 (comment)?

What are your thoughts on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions