apple / swift-argument-parser

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

Remaining arguments and plurality #155

Open erica opened 4 years ago

erica commented 4 years ago

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

natecook1000 commented 4 years ago

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.