fsprojects / Argu

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

Query: Command line argument character (I.E. "--", "/") #167

Closed Marrsstar4 closed 9 months ago

Marrsstar4 commented 2 years ago

Question -

New to F#, I have some small program ideas and I am working on those, but for now I would like to use Argu for command line parsing.

I use the windows standard "/arg1 some_string /INI ini_file.ini" type command line args.

Can Argu use this type of command line character, and if so how.

Any help and or support would be greatly appreciated.

bartelink commented 9 months ago

In general, the OOTB behavior is to use --. AltCommandLine and CliPrefix are the attributes that let you influence it I'm not aware of any explicit support for /

I'd advise pulling the repo into an IDE and reading the tests to get a good flavor of what's possible (the tutorial can be useful too). I personally spent a long time avoiding doing this and regret it!

Marrsstar4 commented 9 months ago

Thanks, I'll venture back into it

Greg