fsprojects / Argu

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

feat: Support for MSBuild-like key-value lists #199

Open dawedawe opened 8 months ago

dawedawe commented 8 months ago

Description

Given

type Arguments =
    | [<EqualsAssignment; AltCommandLine("-p:"); AltCommandLine("-p")>] Property of string * string

to support MSBuild like property lists, it would be great if argu would break up the argument by itself.

Currently, if you pass in -p:prop1="val1a;val1b;val1c";prop2="1;2;3";prop3=val3 argu will think it means prop1 has the value: "val1a;val1b;val1c";prop2="1;2;3";prop3=val3

We were able to get what we want with this

The background story is here.

nojaf commented 8 months ago

Hi there, that sounds like a fine addition. Are you interested in submitting a PR for this?

dawedawe commented 8 months ago

Sure, I'll take a crack at this.