apple / swift-argument-parser

Straightforward, type-safe argument parsing for Swift
Apache License 2.0
3.34k stars 321 forks source link

Don't let .allUnrecognized consume built-in flags #550

Closed natecook1000 closed 1 year ago

natecook1000 commented 1 year ago

Arguments declared with the .allUnrecognized parsing strategy currently capture built-in flags, which isn't intended. This fixes that issue by looking for built-in flags in the captured portion of the input before decoding.

Fixes rdar://104990388

Checklist

natecook1000 commented 1 year ago

@swift-ci Please test