swift-argument-parser
swift-argument-parser copied to clipboard
Warn/validate commands with optional arguments before non-optional
As described in #489, a command that declares an optional @Argument before a non-optional @Argument won't ever allow a single-argument call. It would be nice if ArgumentParser provided a validation warning / error so that authors could move to a different design.
I would consider this a logic bug and be a reasonable cause to fatalError or preconditionFailure.