fsprojects / Argu

A declarative CLI argument parser for F#
https://fsprojects.github.io/Argu
MIT License
453 stars 75 forks source link

Make commandline parameters case insensitive #158

Closed mcon closed 3 years ago

mcon commented 3 years ago

Addresses https://github.com/fsprojects/Argu/issues/155 - whether or not this is strictly necessary or not is up for debate: personally I prefer --kebab-case parameters, though for those that use --CamelCase this would save adding a whole load of annotations.

Will happily amend the documentation and provide an example if this is considered a desirable change.

eiriktsarpalis commented 3 years ago

Thanks, but I'm not sure I'm a fan of that particular change. I would prefer it if the library steered people towards adopting POSIX conventions for argument syntax:

GNU adds long options to these conventions. Long options consist of ‘--’ followed by a name made of alphanumeric characters and dashes. Option names are typically one to three words long, with hyphens to separate words. Users can abbreviate the option names as long as the abbreviations are unique.

Allowing camelCase should therefore not be supported by design.