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

Remaining arguments and plurality

Open erica opened this issue 4 years ago • 1 comments

I'd like to be able to optionally control the USAGE for .remaining parsing to provide appropriate plurality. The screenshot below suggests that the user enters multiple location hints. They do not. With the .remaining parsing, the arguments become a single location hint.

What I see:

USAGE: now [--time <time>] [<location-hint> ...]

What I want (ideas):

USAGE: now [--time <time>] [<location-hint...>] USAGE: now [--time <time>] <...location-hint...>

image

erica avatar May 19 '20 23:05 erica

Thanks for the request, @erica! There's design work to do around customizing the help screen — it's really useful to see your use case.

natecook1000 avatar May 20 '20 14:05 natecook1000