osiewicz / GetOptPlusPlus

C++ library for command line parameter parsing.
Other
0 stars 0 forks source link

Add flags to Definition struct #1

Open osiewicz opened 7 years ago

osiewicz commented 7 years ago

One of the problems with current design is that there are no flags in place - what if I (for example) wanted my arguments to be unique? -1 for unlimited args is also wacky - to say the least.

What we should look into is some kind of enum that we could use to pass flags in Command::Definition. Keep in mind that it should not be aggregate, so:
FLAG1 | FLAG2
is prefered to
{FLAG1,FLAG2}

Keep in mind that this project is still in its early days - everything is up to discussion.