reeflective / flags

Generate cobra command trees from structs. Go-flags compliant tags. Advanced CLI functionality, out-of-the-box.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Better handling for some positional edge cases or invalid setups

maxlandon opened this issue · comments

Currently there are two cases in which the command scan should return an error and does not:

  • When two slices have no maximum requirements.
  • No max on slice where there is another field after it, and no global requirement.

Other than that, there is still some edge cases for positional parsing.
Most cases work fine, and are covered by tests.