fsprojects / Argu

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

Case sentitive #135

Closed reginaldlouis closed 5 years ago

reginaldlouis commented 5 years ago

Description

Be able to support case sensitivity for command line argument. I watn to call a software and I'm using ArgumentParse<'T>.PrintCommandLineArgumentsFlat to generate the final command line. This software have this kind of aguments:

Usage: yosys [options] [<infile> [..]]

    -Q
        suppress printing of banner (copyright, disclaimer, version)

    -q
        quiet operation. only write warnings and error messages to console
        use this option twice to also quiet warning messages

But it's impossible to have a type beginning with a lower case in F#:

type Arguments =
    | Q of bool
    | q

Can we add a modifier to force uppercase or lowercase?

reginaldlouis commented 5 years ago

Solved the probleme by just using [<CustomCommandLine("-Q")>]