osiewicz / GetOptPlusPlus

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

Replace operator overloads with explicit functions #6

Open osiewicz opened 6 years ago

osiewicz commented 6 years ago

While operator overloads are a fancy tool, I feel like I have overused them - especially operator== for Command::Definition. I think they should be replaced with member functions like IsValidName or IsValidArgument - that would help with #5 too.

Note to self: IsValidArgument should also consider whether passed name is used somewhere as a parameter name.