rationale 720 B

123456789101112131415
  1. We could either implement simple chaining for variable maps, or
  2. implement generic composition classes. The former was choosen,
  3. mostly because of simplicity.
  4. There were two implementation approaches for multiple option
  5. occurrences in options_and_arguments. First is store them
  6. separately. The advantage is that it's easy to obtain all
  7. occurrences before certain position on command line. The
  8. disadvantage is that we cannot return a reference to
  9. vector<vector<string> > in get_all_values. It was considered
  10. that if support for position-dependent options is to be
  11. added, then we're be mostly interested in occurrences of
  12. a single option that were before some point. That's possible
  13. with vector<vector<string> > storage.