felixSchl/neodoc

Consolidate repeating flags in spec

felixSchl opened this issue · 2 comments

usage:
  prog -vvv

should yield a specification that says that -v is repeatable. It already works as is, but the specification will have three adjacent occurrences of -v.

Actually, there was a reason for this. The above program will purposely fail at input: -vvvv. Maybe the option type needs to have a repeatability count.

This will be irrelevant once the work outlined in #42 is done, as the definition of a "spec" changed dramatically and we can simply serialize "whenever" (i.e. pre or post any transformations, given that the arg has a fromForeign and toForeign instance.)