swift-argument-parser icon indicating copy to clipboard operation
swift-argument-parser copied to clipboard

EnumerableFlag not pulling correct values

Open erica opened this issue 5 years ago • 1 comments

image

Expect: --single, --double (raw values) Get: --single-quote, --double-quote (the member names)

Current workaround: use the wonderful name(for:) method but it would be better not to have to.

erica avatar May 17 '20 21:05 erica

Great idea! And it'd be fairly easy to add with an extension EnumerableFlag where Self: RawRepresentable

KyNorthstar avatar Jun 04 '20 03:06 KyNorthstar