gsscoder / commandline

Terse syntax C# command line parser for .NET with F# support
1.63k stars 293 forks source link

Parsing key-value pairs #122

Open mr-miles opened 10 years ago

mr-miles commented 10 years ago

Is it possible to use the parser to populate key-value pairs?

So something like "myapp.exe -v:a=x -v:b=y -v:c=z" would populate a property v which is a Dictionary<string, string> with (a,x), (b,y), (c,z) values?

I want to use the parser to specify replacements to be made on a text file

Great package by the way!

alastairtree commented 9 years ago

I have too been looking for this feature. Anyone find/build anything?

gsscoder commented 9 years ago

Happy you like it... I'm recently back to work on the project.

When 2.0 swirch to beta, a lot is planned. I was thinking to something similar too...

Maybe adding a form of post-value processing.

Regards.

Il domenica 31 maggio 2015, alastairtree notifications@github.com ha scritto:

I have too been looking for this feature. Anyone find/build anything?

— Reply to this email directly or view it on GitHub https://github.com/gsscoder/commandline/issues/122#issuecomment-107173091 .

Giacomo Stelluti Scala _Information Technology _Consultant

TheFanatr commented 7 years ago

Any update on this?

DominikWiesend commented 6 years ago

+1 Any update on this?