adishavit / argh

Argh! A minimalist argument handler.
BSD 3-Clause "New" or "Revised" License
1.33k stars 93 forks source link

Support list of same parameters #75

Open paulocoutinhox opened 2 years ago

paulocoutinhox commented 2 years ago

Hi,

Can you add support list of same parameters?

Example:

nativium --build=debug  --build=release  --build=relwithdebinfo

Get all --build parameters and a vector of it.

Thanks.

jibstack64 commented 2 years ago

I haven't tried this, but surely another solution would be to parse the arguments, store the initial value of the --build parameter, then reparse the arguments with the first repetition of --build removed from the argv array. I'm not sure this is a problem with the library, or rather the complexity/versatility of the program you are trying to build.

adishavit commented 1 year ago

There’s a PR for this. It needs a review and some testing. Will try to get to it.