Affinity interview question

Build a library to parse command-line arguments in various locations.